summaryrefslogtreecommitdiff
path: root/src/schema/schema_truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/schema/schema_truncate.c')
-rw-r--r--src/schema/schema_truncate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/schema/schema_truncate.c b/src/schema/schema_truncate.c
index 1eb76226aad..3f2d080284c 100644
--- a/src/schema/schema_truncate.c
+++ b/src/schema/schema_truncate.c
@@ -33,8 +33,8 @@ __truncate_file(WT_SESSION_IMPL *session, const char *name)
WT_RET(__wt_session_release_btree(session));
/* Close any btree handles in the file. */
- WT_WITH_DHANDLE_LOCK(session,
- ret = __wt_conn_dhandle_close_all(session, name, 0));
+ WT_WITH_HANDLE_LIST_LOCK(session,
+ ret = __wt_conn_dhandle_close_all(session, name, false));
WT_RET(ret);
/* Delete the root address and truncate the file. */