summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builder.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-09-26 14:02:49 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-10-06 17:30:12 -0400
commit101e026f45dea5e9e68520238495c89a476e6172 (patch)
treebbdd3710ffc5721527ad9f5682ef0dbb4876dfee /src/mongo/db/index_builder.h
parent10c86dc6cad9853514148e0ab59894a0d29353b9 (diff)
downloadmongo-101e026f45dea5e9e68520238495c89a476e6172.tar.gz
SERVER-14668/SERVER-15294 Collection-level locking for all read paths
Diffstat (limited to 'src/mongo/db/index_builder.h')
-rw-r--r--src/mongo/db/index_builder.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/index_builder.h b/src/mongo/db/index_builder.h
index 9c71ec7c85d..29364757526 100644
--- a/src/mongo/db/index_builder.h
+++ b/src/mongo/db/index_builder.h
@@ -30,20 +30,21 @@
#include <string>
+#include "mongo/base/status.h"
#include "mongo/db/catalog/index_catalog.h"
-#include "mongo/db/client.h"
#include "mongo/db/jsobj.h"
#include "mongo/platform/atomic_word.h"
#include "mongo/util/background.h"
-/**
- * Forks off a thread to build an index.
- */
namespace mongo {
class Collection;
+ class Database;
class OperationContext;
+ /**
+ * Forks off a thread to build an index.
+ */
class IndexBuilder : public BackgroundJob {
public:
IndexBuilder(const BSONObj& index);