diff options
author | Pavi Vetriselvan <pvselvan@umich.edu> | 2019-05-14 12:38:51 -0400 |
---|---|---|
committer | Pavi Vetriselvan <pvselvan@umich.edu> | 2019-05-14 12:40:32 -0400 |
commit | 68a1b16ca1ed6d8b45257742340fa35ab8a0b19e (patch) | |
tree | 95736a08d53c583653f62f41e64cdcde49c853fd | |
parent | e96d68d0c46b43c8fada1224436638a135731a38 (diff) | |
download | mongo-68a1b16ca1ed6d8b45257742340fa35ab8a0b19e.tar.gz |
SERVER-40937 change DB X lock to IX lock during secondary multikey updates
-rw-r--r-- | src/mongo/db/repl/storage_interface_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp index 7bb1dfc9ab1..a7ee8bd067d 100644 --- a/src/mongo/db/repl/storage_interface_impl.cpp +++ b/src/mongo/db/repl/storage_interface_impl.cpp @@ -537,7 +537,7 @@ Status StorageInterfaceImpl::setIndexIsMultikey(OperationContext* opCtx, } return writeConflictRetry(opCtx, "StorageInterfaceImpl::setIndexIsMultikey", nss.ns(), [&] { - AutoGetCollection autoColl(opCtx, nss, MODE_X); + AutoGetCollection autoColl(opCtx, nss, MODE_IX); auto collectionResult = getCollection( autoColl, nss, "The collection must exist before setting an index to multikey."); if (!collectionResult.isOK()) { |