summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bench/wtperf/wtperf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c
index ded763a1f3b..c05b9d4ad6b 100644
--- a/bench/wtperf/wtperf.c
+++ b/bench/wtperf/wtperf.c
@@ -446,6 +446,11 @@ worker(void *arg)
goto err;
}
+ /* Setup for truncate */
+ if (thread->workload->truncate != 0)
+ if ((ret = setup_truncate(cfg, thread, session)) != 0)
+ goto err;
+
key_buf = thread->key_buf;
value_buf = thread->value_buf;
@@ -458,11 +463,6 @@ worker(void *arg)
goto err;
}
- /* Setup for truncate */
- if (thread->workload->truncate != 0)
- if ((ret = setup_truncate(cfg, thread, session)) != 0)
- goto err;
-
while (!cfg->stop) {
/*
* Generate the next key and setup operation specific