summaryrefslogtreecommitdiff
path: root/src/schema
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2016-03-17 10:56:30 +1100
committerMichael Cahill <michael.cahill@mongodb.com>2016-03-17 10:56:30 +1100
commit0b8745ea5e5fedd4b173914add7746b99f66aec2 (patch)
tree2386b5408a964b2cf573f7ed15d5d6df36fa6ca0 /src/schema
parent69f40aeb87c0b91a0356e277c5cdcbe4ec152d5c (diff)
downloadmongo-0b8745ea5e5fedd4b173914add7746b99f66aec2.tar.gz
WT-2426 Lock all handles for checkpoints in one pass.
In particular, gather all locks (including exclusive locks on old checkpoints) under the schema / handle list lock so we never reenter those locks once we have a handle exclusive. This extends the duration that we hold exclusive locks on checkpoints to include the write leaves phase. If that turns out to be a problem, we could further split out write leaves into a separate pass (that releases all handles at the end).
Diffstat (limited to 'src/schema')
-rw-r--r--src/schema/schema_worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/schema/schema_worker.c b/src/schema/schema_worker.c
index e60a7107786..52be76bb7a5 100644
--- a/src/schema/schema_worker.c
+++ b/src/schema/schema_worker.c
@@ -126,7 +126,7 @@ __wt_schema_worker(WT_SESSION_IMPL *session,
dsrc, wt_session, uri, (WT_CONFIG_ARG *)cfg));
else if (file_func == __wt_checkpoint)
;
- else if (file_func == __wt_checkpoint_list)
+ else if (file_func == __wt_checkpoint_get_handles)
;
else if (file_func == __wt_checkpoint_sync)
;