diff options
author | Hari Khalsa <hkhalsa@10gen.com> | 2014-04-29 12:39:52 -0400 |
---|---|---|
committer | Hari Khalsa <hkhalsa@10gen.com> | 2014-04-29 14:10:28 -0400 |
commit | bfdfc52bd1dc255cabff83109460e13dd272389b (patch) | |
tree | 604105d51b72eccdb2201e614b07f37ea4af740c /src/mongo/db/catalog/index_create.h | |
parent | 8e155fdfaeca8d77e19c0adcb570d3a1029cdccb (diff) | |
download | mongo-bfdfc52bd1dc255cabff83109460e13dd272389b.tar.gz |
SERVER-13641 move dur above index layer
Diffstat (limited to 'src/mongo/db/catalog/index_create.h')
-rw-r--r-- | src/mongo/db/catalog/index_create.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/index_create.h b/src/mongo/db/catalog/index_create.h index c824f27f123..1484c06df59 100644 --- a/src/mongo/db/catalog/index_create.h +++ b/src/mongo/db/catalog/index_create.h @@ -37,6 +37,7 @@ #include "mongo/base/status.h" #include "mongo/db/diskloc.h" #include "mongo/db/index/index_access_method.h" +#include "mongo/db/storage/transaction.h" namespace mongo { @@ -54,7 +55,8 @@ namespace mongo { class MultiIndexBlock { MONGO_DISALLOW_COPYING( MultiIndexBlock ); public: - MultiIndexBlock( Collection* collection ); + MultiIndexBlock(TransactionExperiment* txn, + Collection* collection ); ~MultiIndexBlock(); Status init( std::vector<BSONObj>& specs ); @@ -81,6 +83,9 @@ namespace mongo { }; std::vector<IndexState> _states; + + // Not owned here, must outlive 'this' + TransactionExperiment* _txn; }; } // namespace mongo |