diff options
Diffstat (limited to 'src/third_party/wiredtiger/src/cursor/cur_std.c')
-rw-r--r-- | src/third_party/wiredtiger/src/cursor/cur_std.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/cursor/cur_std.c b/src/third_party/wiredtiger/src/cursor/cur_std.c index ff8131d5167..b047c06221c 100644 --- a/src/third_party/wiredtiger/src/cursor/cur_std.c +++ b/src/third_party/wiredtiger/src/cursor/cur_std.c @@ -651,6 +651,12 @@ __wt_cursor_cache(WT_CURSOR *cursor, WT_DATA_HANDLE *dhandle) WT_TRET(cursor->reset(cursor)); + /* + * Cursor reset clears bounds on cursors when called externally, we need to clear the bounds + * manually when we cache a cursor. + */ + __wt_cursor_bound_reset(cursor); + /* Don't keep buffers allocated for cached cursors. */ __wt_buf_free(session, &cursor->key); __wt_buf_free(session, &cursor->value); |