summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <andrew.morton@mongodb.com>2023-03-29 21:58:04 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-29 23:14:09 +0000
commit96976f966970132d6a587816a7f15ed809f96095 (patch)
tree857d304aa0b87232e5143321bf91259973ed9291
parent5b9c34a1a50f35b3d7760c83c8afdae4935c15ef (diff)
downloadmongo-96976f966970132d6a587816a7f15ed809f96095.tar.gz
Import wiredtiger: 7a06bda728c9a56135b5d6edd118420778d9c7cf from branch mongodb-master
ref: fefd800949..7a06bda728 for: 7.0.0-rc0 WT-10106 Updated reverse_split test to reset cursor used to locate start key of truncate prior to blocking to prevent pinning content in the cache
-rw-r--r--src/third_party/wiredtiger/import.data2
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/tests/reverse_split.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/import.data b/src/third_party/wiredtiger/import.data
index a7de3865c91..df98c7ff81d 100644
--- a/src/third_party/wiredtiger/import.data
+++ b/src/third_party/wiredtiger/import.data
@@ -2,5 +2,5 @@
"vendor": "wiredtiger",
"github": "wiredtiger/wiredtiger.git",
"branch": "mongodb-master",
- "commit": "fefd800949a4b0be512bfd7fe63f9255ccd8cd50"
+ "commit": "7a06bda728c9a56135b5d6edd118420778d9c7cf"
}
diff --git a/src/third_party/wiredtiger/test/cppsuite/tests/reverse_split.cpp b/src/third_party/wiredtiger/test/cppsuite/tests/reverse_split.cpp
index 995bd171ad8..53b26dac60b 100644
--- a/src/third_party/wiredtiger/test/cppsuite/tests/reverse_split.cpp
+++ b/src/third_party/wiredtiger/test/cppsuite/tests/reverse_split.cpp
@@ -98,6 +98,10 @@ public:
logger::log_msg(LOG_WARN,
"thread {" + std::to_string(tc->id) + "} failed to commit truncation of " +
std::to_string(end_key_id - min_key_id) + " records.");
+
+ /* Reset our cursor to avoid pinning content prior to sleep and sync. */
+ testutil_check(write_cursor->reset(write_cursor.get()));
+
tc->sleep();
/*
* Synchronize across our truncate threads so they don't diverge over time. This results