summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/lsm/lsm_manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/lsm/lsm_manager.c')
-rw-r--r--src/third_party/wiredtiger/src/lsm/lsm_manager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/lsm/lsm_manager.c b/src/third_party/wiredtiger/src/lsm/lsm_manager.c
index b3e13870c95..24a0429a184 100644
--- a/src/third_party/wiredtiger/src/lsm/lsm_manager.c
+++ b/src/third_party/wiredtiger/src/lsm/lsm_manager.c
@@ -291,8 +291,10 @@ __wt_lsm_manager_destroy(WT_SESSION_IMPL *session)
manager->lsm_workers == 0);
if (manager->lsm_workers > 0) {
/* Wait for the main LSM manager thread to finish. */
- while (!F_ISSET(manager, WT_LSM_MANAGER_SHUTDOWN))
+ while (!F_ISSET(manager, WT_LSM_MANAGER_SHUTDOWN)) {
+ WT_STAT_CONN_INCR(session, conn_close_blocked_lsm);
__wt_yield();
+ }
/* Clean up open LSM handles. */
ret = __wt_lsm_tree_close_all(session);