diff options
author | Benety Goh <benety@mongodb.com> | 2019-01-18 13:45:34 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2019-01-18 13:45:34 -0500 |
commit | 94ca845476a61c9a97ae119bb4d0bf2a045fe16f (patch) | |
tree | ca1394ff459376572881e295c35822e31b96dc05 /src/mongo/db/catalog/index_builds_manager.h | |
parent | be38d61492a125883dbdc111f331661a24b09e35 (diff) | |
download | mongo-94ca845476a61c9a97ae119bb4d0bf2a045fe16f.tar.gz |
SERVER-37643 refine IndexBuildsCoordinator and IndexBuildsManager interfaces to support createIndexes refactor
extend IndexBuildsCoordinatorMongodTest::createCollection() to accept collection UUID
IndexBuildsCoordinator::buildIndex() returns index catalog stats
IndexBuildsCoordinator::buildIndex() accepts collection UUID instead of namespace
IndexBuildsManager::commitIndexBuild() accepts callback for index builds
Diffstat (limited to 'src/mongo/db/catalog/index_builds_manager.h')
-rw-r--r-- | src/mongo/db/catalog/index_builds_manager.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/index_builds_manager.h b/src/mongo/db/catalog/index_builds_manager.h index eb388b84d6c..809af63a466 100644 --- a/src/mongo/db/catalog/index_builds_manager.h +++ b/src/mongo/db/catalog/index_builds_manager.h @@ -36,6 +36,7 @@ #include "mongo/base/disallow_copying.h" #include "mongo/db/catalog/multi_index_block.h" #include "mongo/db/namespace_string.h" +#include "mongo/stdx/functional.h" #include "mongo/stdx/mutex.h" namespace mongo { @@ -118,7 +119,11 @@ public: * * TODO: Not yet implemented. */ - Status commitIndexBuild(const UUID& buildUUID); + using OnCommitFn = stdx::function<void(const BSONObj& spec)>; + Status commitIndexBuild(OperationContext* opCtx, + const NamespaceString& nss, + const UUID& buildUUID, + OnCommitFn onCommitFn); /** * Signals the index build to be aborted and returns without waiting for completion. |