summaryrefslogtreecommitdiff
path: root/bench/wtperf/wtperf.c
diff options
context:
space:
mode:
Diffstat (limited to 'bench/wtperf/wtperf.c')
-rw-r--r--bench/wtperf/wtperf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c
index adddf60f5d3..a1dc78a5312 100644
--- a/bench/wtperf/wtperf.c
+++ b/bench/wtperf/wtperf.c
@@ -2300,7 +2300,7 @@ err: if (ret == 0)
ret = t_ret;
}
- if (wtperf->conn != NULL &&
+ if (wtperf->conn != NULL && opts->close_conn &&
(t_ret = wtperf->conn->close(wtperf->conn, NULL)) != 0) {
lprintf(wtperf, t_ret, 0,
"Error closing connection to %s", wtperf->home);