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/catalog/collection_catalog_entry.h | |
parent | cb3f5cfa43d9565675d2f36c4b0f7cecbad47a49 (diff) | |
download | mongo-f0bb5123f50bb617eb9499539f01779c6e9f5e95.tar.gz |
SERVER-13635: OperationContext on read paths
Diffstat (limited to 'src/mongo/db/catalog/collection_catalog_entry.h')
-rw-r--r-- | src/mongo/db/catalog/collection_catalog_entry.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/mongo/db/catalog/collection_catalog_entry.h b/src/mongo/db/catalog/collection_catalog_entry.h index 1b0175b59c8..d537df5d223 100644 --- a/src/mongo/db/catalog/collection_catalog_entry.h +++ b/src/mongo/db/catalog/collection_catalog_entry.h @@ -53,29 +53,34 @@ namespace mongo { virtual CollectionOptions getCollectionOptions( OperationContext* txn ) const = 0; - virtual int getTotalIndexCount() const = 0; + virtual int getTotalIndexCount( OperationContext* txn ) const = 0; - virtual int getCompletedIndexCount() const = 0; + virtual int getCompletedIndexCount( OperationContext* txn ) const = 0; virtual int getMaxAllowedIndexes() const = 0; - virtual void getAllIndexes( std::vector<std::string>* names ) const = 0; + virtual void getAllIndexes( OperationContext* txn, + std::vector<std::string>* names ) const = 0; - virtual BSONObj getIndexSpec( const StringData& idxName ) const = 0; + virtual BSONObj getIndexSpec( OperationContext* txn, + const StringData& idxName ) const = 0; - virtual bool isIndexMultikey( const StringData& indexName) const = 0; + virtual bool isIndexMultikey( OperationContext* txn, + const StringData& indexName) const = 0; virtual bool setIndexIsMultikey(OperationContext* txn, const StringData& indexName, bool multikey = true) = 0; - virtual DiskLoc getIndexHead( const StringData& indexName ) const = 0; + virtual DiskLoc getIndexHead( OperationContext* txn, + const StringData& indexName ) const = 0; virtual void setIndexHead( OperationContext* txn, const StringData& indexName, const DiskLoc& newHead ) = 0; - virtual bool isIndexReady( const StringData& indexName ) const = 0; + virtual bool isIndexReady( OperationContext* txn, + const StringData& indexName ) const = 0; virtual Status removeIndex( OperationContext* txn, const StringData& indexName ) = 0; |