diff options
author | Eric Milkie <milkie@10gen.com> | 2013-04-02 13:28:11 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2013-04-08 16:26:37 -0400 |
commit | 6d8d4172c7388495b518ae6b8d4f836532f770d8 (patch) | |
tree | 79f8a47398eb92c86ecd30bd7cb15955a03085f2 /src/mongo/db/commands.h | |
parent | 50c89129eaa8c77ce24bb1e2f2965996f3757143 (diff) | |
download | mongo-6d8d4172c7388495b518ae6b8d4f836532f770d8.tar.gz |
SERVER-8536 reenable index builds for incomplete indexes at startup
At startup time, we will once again attempt to rebuild any index builds
that were in progress when the server was shut down.
This is to support background index builds with replication.
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index 3897308a720..d1049f78c1a 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -149,6 +149,10 @@ namespace mongo { static map<string,Command*> * _webCommands; public: + // Stop all index builds required to run this command and return index builds killed. + virtual std::vector<BSONObj> stopIndexBuilds(const std::string& dbname, + const BSONObj& cmdObj); + static const map<string,Command*>* commandsByBestName() { return _commandsByBestName; } static const map<string,Command*>* webCommands() { return _webCommands; } /** @return if command was found */ |