diff options
Diffstat (limited to 'src/third_party/wiredtiger/src/include/cursor.h')
-rw-r--r-- | src/third_party/wiredtiger/src/include/cursor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/include/cursor.h b/src/third_party/wiredtiger/src/include/cursor.h index 0e5905f491e..33d6660e687 100644 --- a/src/third_party/wiredtiger/src/include/cursor.h +++ b/src/third_party/wiredtiger/src/include/cursor.h @@ -217,6 +217,14 @@ struct __wt_cursor_btree { uint8_t append_tree; /* Cursor appended to the tree */ + /* + * We have to restart cursor next/prev after a prepare conflict. Keep + * the state of the cursor separately so we can restart at exactly the + * right point. + */ + enum { WT_CBT_RETRY_NOTSET=0, + WT_CBT_RETRY_INSERT, WT_CBT_RETRY_PAGE } iter_retry; + #ifdef HAVE_DIAGNOSTIC /* Check that cursor next/prev never returns keys out-of-order. */ WT_ITEM *lastkey, _lastkey; |