summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/cursor/cur_std.c
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2020-05-14 16:44:40 +1000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-14 07:02:37 +0000
commit328c35e4b883540675fb4b626c53a08f74e43cf0 (patch)
treeb2a7100993281a81bb4d76ad040c9164bf617453 /src/third_party/wiredtiger/src/cursor/cur_std.c
parentcb6fe33a7616148bc4590ccdb0fcbc65b5c7035e (diff)
downloadmongo-328c35e4b883540675fb4b626c53a08f74e43cf0.tar.gz
Import wiredtiger: 4cf221a61f19db1ed706f923d18d3d0b507101c9 from branch mongodb-4.4r4.4.0-rc6
ref: 63b37d1861..4cf221a61f for: 4.4.0-rc6 WT-5725 Remove the WT_CURSOR_BTREE.btree field WT-6082 Skip writing txn-id to data store when not needed WT-6088 Re-enable format-test WT-6151 Perform an empty check on time window before performing visibility check WT-6164 Reduce the number of page flags according to the flag variable size WT-6169 Use helper functions to check time window's visibility WT-6172 Fix silent failures of Evergreen test/format tasks WT-6186 Only delete timestamped history store entries when seeing a non-timestamped tombstone WT-6201 Release WT_CURSOR_BTREE buffers when caching a WT_CURSOR WT-6205 Coverity analysis defect 114159: Redundant test WT-6206 Coverity analysis defect 114158: Uninitialized pointer read WT-6207 Coverity analysis defect 114156: PW.SET_BUT_NOT_USED WT-6209 Coverity analysis defect 114135: Unintentional integer overflow WT-6210 Coverity analysis defect 114134: Explicit null dereferenced
Diffstat (limited to 'src/third_party/wiredtiger/src/cursor/cur_std.c')
-rw-r--r--src/third_party/wiredtiger/src/cursor/cur_std.c3
1 files changed, 3 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 fd81465eb76..57a22a04aac 100644
--- a/src/third_party/wiredtiger/src/cursor/cur_std.c
+++ b/src/third_party/wiredtiger/src/cursor/cur_std.c
@@ -655,6 +655,9 @@ __wt_cursor_cache(WT_CURSOR *cursor, WT_DATA_HANDLE *dhandle)
__wt_buf_free(session, &cursor->key);
__wt_buf_free(session, &cursor->value);
+ /* Discard the underlying WT_CURSOR_BTREE buffers. */
+ __wt_btcur_cache((WT_CURSOR_BTREE *)cursor);
+
/*
* Acquire a reference while decrementing the in-use counter. After this point, the dhandle may
* be marked dead, but the actual handle won't be removed.