diff options
-rw-r--r-- | src/conn/conn_sweep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conn/conn_sweep.c b/src/conn/conn_sweep.c index d6eb316f611..b23c8151db1 100644 --- a/src/conn/conn_sweep.c +++ b/src/conn/conn_sweep.c @@ -133,8 +133,9 @@ __sweep_expire(WT_SESSION_IMPL *session, time_t now) now <= dhandle->timeofdeath + conn->sweep_idle_time) continue; - WT_WITH_DHANDLE(session, dhandle, - ret = __sweep_expire_one(session)); + WT_WITH_DHANDLE_LOCK(session, + WT_WITH_DHANDLE(session, dhandle, + ret = __sweep_expire_one(session))); WT_RET_BUSY_OK(ret); } |