diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2016-03-17 10:56:30 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-03-17 10:56:30 +1100 |
commit | 0b8745ea5e5fedd4b173914add7746b99f66aec2 (patch) | |
tree | 2386b5408a964b2cf573f7ed15d5d6df36fa6ca0 /test | |
parent | 69f40aeb87c0b91a0356e277c5cdcbe4ec152d5c (diff) | |
download | mongo-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 'test')
-rw-r--r-- | test/suite/test_checkpoint01.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/suite/test_checkpoint01.py b/test/suite/test_checkpoint01.py index 9955944f73d..6e1ad7814ed 100644 --- a/test/suite/test_checkpoint01.py +++ b/test/suite/test_checkpoint01.py @@ -185,7 +185,7 @@ class test_checkpoint_cursor(wttest.WiredTigerTestCase): # Check dropping all checkpoints fails. msg = '/checkpoints cannot be dropped/' self.assertRaisesWithMessage(wiredtiger.WiredTigerError, - lambda: self.session.checkpoint("name=checkpoint-2"), msg) + lambda: self.session.checkpoint("force,name=checkpoint-2"), msg) self.assertRaisesWithMessage(wiredtiger.WiredTigerError, lambda: self.session.checkpoint("drop=(checkpoint-2)"), msg) self.assertRaisesWithMessage(wiredtiger.WiredTigerError, |