summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog
diff options
context:
space:
mode:
authorCraig Harris <craig.harris@10gen.com>2014-06-20 18:50:45 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-06-23 09:22:42 -0400
commit6c8a8a275bd12282c64ef6d60dc9d3d27975bd9b (patch)
treebe1d028fa3a395eaa0b8c01e5ee96b45572025ab /src/mongo/db/catalog
parenta324117b7f95666d15701212d31b6966b1309a48 (diff)
downloadmongo-6c8a8a275bd12282c64ef6d60dc9d3d27975bd9b.tar.gz
SERVER-14006 Partition the experimental lock manager
This allows the experimental document-level locking to scale past 4x cores.
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r--src/mongo/db/catalog/collection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/collection.cpp b/src/mongo/db/catalog/collection.cpp
index 81f98db7f62..b44a7aa0a9c 100644
--- a/src/mongo/db/catalog/collection.cpp
+++ b/src/mongo/db/catalog/collection.cpp
@@ -406,7 +406,7 @@ namespace mongo {
// Broadcast the mutation so that query results stay correct.
_cursorCache.invalidateDocument(loc, INVALIDATION_MUTATION);
- ExclusiveResourceLock lk((size_t)txn->getCurOp()->opNum(), *(size_t*)&loc);
+ ExclusiveResourceLock lk(txn->getTransaction(), *(size_t*)&loc);
return _recordStore->updateWithDamages( txn, loc, damangeSource, damages );
}