diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2019-10-17 15:10:46 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-17 15:10:46 +0000 |
commit | 65decc93b23acf373d33d7453bb2ba745a6ef319 (patch) | |
tree | 87b24d3bce0740afaeef10928456c689714fba20 /src/mongo/dbtests/dbtests.h | |
parent | 1744f22d21339bcf212cb66d85cd4c582d123c0e (diff) | |
download | mongo-65decc93b23acf373d33d7453bb2ba745a6ef319.tar.gz |
SERVER-43858: Relax database creation lock acquisition from MODE_X to MODE_IX.
Diffstat (limited to 'src/mongo/dbtests/dbtests.h')
-rw-r--r-- | src/mongo/dbtests/dbtests.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/dbtests.h b/src/mongo/dbtests/dbtests.h index f0b0166aecb..b40c46b8fb1 100644 --- a/src/mongo/dbtests/dbtests.h +++ b/src/mongo/dbtests/dbtests.h @@ -65,8 +65,8 @@ Status createIndexFromSpec(OperationContext* opCtx, StringData ns, const BSONObj /** * Combines AutoGetOrCreateDb and OldClientContext. If the requested 'ns' exists, the constructed * object will have both the database and the collection locked in MODE_IX. Otherwise, the database - * will be locked in MODE_X and will be created (note, only the database will be created, but not - * the collection). + * will be locked in MODE_IX and will be created, while the collection will be locked in MODE_X, but + * not created. */ class WriteContextForTests { WriteContextForTests(const WriteContextForTests&) = delete; |