diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-08-25 17:25:39 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-08-25 18:08:37 -0400 |
commit | f0bb5123f50bb617eb9499539f01779c6e9f5e95 (patch) | |
tree | 98cc4abf3c89881691158345435523c5dd6ae37f /src/mongo/db/index/index_descriptor.h | |
parent | cb3f5cfa43d9565675d2f36c4b0f7cecbad47a49 (diff) | |
download | mongo-f0bb5123f50bb617eb9499539f01779c6e9f5e95.tar.gz |
SERVER-13635: OperationContext on read paths
Diffstat (limited to 'src/mongo/db/index/index_descriptor.h')
-rw-r--r-- | src/mongo/db/index/index_descriptor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/index/index_descriptor.h b/src/mongo/db/index/index_descriptor.h index 2e259136747..01a12cf3d5f 100644 --- a/src/mongo/db/index/index_descriptor.h +++ b/src/mongo/db/index/index_descriptor.h @@ -127,7 +127,10 @@ namespace mongo { bool isSparse() const { return _sparse; } // Is this index multikey? - bool isMultikey() const { _checkOk(); return _collection->getIndexCatalog()->isMultikey( this ); } + bool isMultikey( OperationContext* txn ) const { + _checkOk(); + return _collection->getIndexCatalog()->isMultikey( txn, this ); + } bool isIdIndex() const { _checkOk(); return _isIdIndex; } |