summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builder.h
diff options
context:
space:
mode:
authorKristina <kristina@10gen.com>2013-01-02 10:41:44 -0500
committerKristina <kristina@10gen.com>2013-01-02 10:44:58 -0500
commite04a7396ea753ea6dbff89028c11ed689868d707 (patch)
tree042038ef3865de5de48df3afd18740f1d1b2c37a /src/mongo/db/index_builder.h
parent43cc1547aaf72146f937d3ae72325807539a4199 (diff)
downloadmongo-e04a7396ea753ea6dbff89028c11ed689868d707.tar.gz
SERVER-2771 Revert command handling
This reverts commit e733331c7edb8871ba2dc58f20fbd2f40bf3adda. This reverts commit ccf86a0fdbe7f9c9a45e8fad0410a7eef777fea2. This reverts commit 7962e49b40c2bf344187df4c6fdd857c2255d759. This reverts commit c5e5e6b9c0d9609234afd1390984d08f6055801b. This reverts commit 325ec6e4d66dfdc075b47a804314eec8f7ea3eb2. This reverts commit 283fc0d291c196232cebc8b964178037aa71f943. This reverts commit 2f21426abe2d75487c91fb361154261969d303cd.
Diffstat (limited to 'src/mongo/db/index_builder.h')
-rw-r--r--src/mongo/db/index_builder.h59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/mongo/db/index_builder.h b/src/mongo/db/index_builder.h
deleted file mode 100644
index 0b5de273c84..00000000000
--- a/src/mongo/db/index_builder.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * Copyright (C) 2012 10gen Inc.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-#include <string>
-
-#include "mongo/db/jsobj.h"
-#include "mongo/util/background.h"
-
-/**
- * Forks off a thread to build an index.
- */
-namespace mongo {
-
- class IndexBuilder : public BackgroundJob {
- public:
- IndexBuilder(const std::string ns, const BSONObj index);
- virtual ~IndexBuilder();
-
- virtual void run();
- virtual std::string name() const;
-
- void build() const;
-
- /**
- * Kill all in-progress indexes matching criteria and, optionally, store them in the
- * indexes list.
- */
- static std::vector<BSONObj> killMatchingIndexBuilds(const BSONObj& criteria);
-
- /**
- * Retry all index builds in the list. Builds each index in a separate thread. If ns does
- * not match the ns field in the indexes list, the BSONObj's ns field is changed before the
- * index is built (to handle rename).
- */
- static void restoreIndexes(const std::string& ns, const std::vector<BSONObj>& indexes);
-
- private:
- const std::string _ns;
- const BSONObj _index;
- std::string _name;
- static AtomicUInt _indexBuildCount;
- };
-
-}