summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-04-04 15:59:49 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-04-05 12:44:10 -0400
commit8765acc0fcc6ca3dd7158521ba8d864af4e0f2df (patch)
tree9fc35ffc0f93b334bbc846cb6ccf91250ae11252 /src/mongo/db/dbhelpers.h
parent97691221bcf43245ddfd906766abc93bb617d2aa (diff)
downloadmongo-8765acc0fcc6ca3dd7158521ba8d864af4e0f2df.tar.gz
SERVER-27691 Make OperationContext::setKillAllOperations interrupt all operations
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r--src/mongo/db/dbhelpers.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h
index d143c418dbf..bcba05a7b04 100644
--- a/src/mongo/db/dbhelpers.h
+++ b/src/mongo/db/dbhelpers.h
@@ -32,7 +32,6 @@
#include <memory>
#include "mongo/db/db.h"
-#include "mongo/db/index/index_descriptor.h"
#include "mongo/db/record_id.h"
#include "mongo/db/storage/data_protector.h"
@@ -54,23 +53,6 @@ struct WriteConcernOptions;
struct Helpers {
class RemoveSaver;
- /* ensure the specified index exists.
-
- @param keyPattern key pattern, e.g., { ts : 1 }
- @param name index name, e.g., "name_1"
-
- This method can be a little (not much) cpu-slow, so you may wish to use
- OCCASIONALLY ensureIndex(...);
-
- Note: does nothing if collection does not yet exist.
- */
- static void ensureIndex(OperationContext* opCtx,
- Collection* collection,
- BSONObj keyPattern,
- IndexDescriptor::IndexVersion indexVersion,
- bool unique,
- const char* name);
-
/* fetch a single object from collection ns that matches query.
set your db SavedContext first.