diff options
author | drh <drh@noemail.net> | 2014-11-18 20:49:30 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-11-18 20:49:30 +0000 |
commit | 64b600ff13d4bac1d459cf54b649b45e520aba4c (patch) | |
tree | b9d2242eea593c2834786c15c31d87cbb80dfdf0 /src/btreeInt.h | |
parent | bea3b976a95b00968d6f3ca496d5c1dfd3104527 (diff) | |
parent | bb8f92529401b09dbc6e9df4ba3e38ae3a0789f3 (diff) | |
download | sqlite-64b600ff13d4bac1d459cf54b649b45e520aba4c.tar.gz sqlite-64b600ff13d4bac1d459cf54b649b45e520aba4c.zip |
Merge in all the other ROLLBACK fixes from the branch-3.8.7 branch.
I don't know why I was doing them one-by-one.
FossilOrigin-Name: 296b0c7397790ceadbdb330959e962f6491abc3e
Diffstat (limited to 'src/btreeInt.h')
-rw-r--r-- | src/btreeInt.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/btreeInt.h b/src/btreeInt.h index 2368e6c88..a28a6a297 100644 --- a/src/btreeInt.h +++ b/src/btreeInt.h @@ -489,6 +489,11 @@ struct CellInfo { ** ** Fields in this structure are accessed under the BtShared.mutex ** found at self->pBt->mutex. +** +** skipNext meaning: +** eState==SKIPNEXT && skipNext>0: Next sqlite3BtreeNext() is no-op. +** eState==SKIPNEXT && skipNext<0: Next sqlite3BtreePrevious() is no-op. +** eState==FAULT: Cursor fault with skipNext as error code. */ struct BtCursor { Btree *pBtree; /* The Btree to which this cursor belongs */ @@ -501,7 +506,8 @@ struct BtCursor { void *pKey; /* Saved key that was cursor last known position */ Pgno pgnoRoot; /* The root page of this tree */ int nOvflAlloc; /* Allocated size of aOverflow[] array */ - int skipNext; /* Prev() is noop if negative. Next() is noop if positive */ + int skipNext; /* Prev() is noop if negative. Next() is noop if positive. + ** Error code if eState==CURSOR_FAULT */ u8 curFlags; /* zero or more BTCF_* flags defined below */ u8 eState; /* One of the CURSOR_XXX constants (see below) */ u8 hints; /* As configured by CursorSetHints() */ @@ -547,7 +553,7 @@ struct BtCursor { ** on a different connection that shares the BtShared cache with this ** cursor. The error has left the cache in an inconsistent state. ** Do nothing else with this cursor. Any attempt to use the cursor -** should return the error code stored in BtCursor.skip +** should return the error code stored in BtCursor.skipNext */ #define CURSOR_INVALID 0 #define CURSOR_VALID 1 |