summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/format/snap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/format/snap.c')
-rw-r--r--src/third_party/wiredtiger/test/format/snap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/test/format/snap.c b/src/third_party/wiredtiger/test/format/snap.c
index 2982f5bf4a1..94a7643c234 100644
--- a/src/third_party/wiredtiger/test/format/snap.c
+++ b/src/third_party/wiredtiger/test/format/snap.c
@@ -603,9 +603,12 @@ void
snap_repeat_single(TINFO *tinfo)
{
SNAP_OPS *snap;
+ uint64_t ts;
u_int v;
int count;
+ ts = maximum_read_ts();
+
/*
* Start at a random spot in the list of operations and look for a read to retry. Stop when
* we've walked the entire list or found one.
@@ -616,7 +619,7 @@ snap_repeat_single(TINFO *tinfo)
if (snap >= tinfo->snap_end)
snap = tinfo->snap_list;
- if (snap->repeatable)
+ if (snap->repeatable && snap->ts <= ts)
break;
}