summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/cppsuite/tests/reverse_split.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/cppsuite/tests/reverse_split.cpp')
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/tests/reverse_split.cpp4
1 files changed, 4 insertions, 0 deletions
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