diff options
Diffstat (limited to 'src/third_party/wiredtiger/test/cppsuite/test_harness/workload_generator.h')
-rw-r--r-- | src/third_party/wiredtiger/test/cppsuite/test_harness/workload_generator.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/test/cppsuite/test_harness/workload_generator.h b/src/third_party/wiredtiger/test/cppsuite/test_harness/workload_generator.h index 10d6f4b9aa6..e6fb4db169c 100644 --- a/src/third_party/wiredtiger/test/cppsuite/test_harness/workload_generator.h +++ b/src/third_party/wiredtiger/test/cppsuite/test_harness/workload_generator.h @@ -133,6 +133,12 @@ class workload_generator : public component { * into the thread context it is not saved, so we are safe to do this. */ delete it.config; + + /* + * Reset the thread_id counter to 0 as we're only interested in knowing per operation + * type which thread we are. + */ + thread_id = 0; } } |