summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.h
diff options
context:
space:
mode:
authorApollon Oikonomopoulos <apoikos@debian.org>2018-03-22 12:04:55 +0200
committerApollon Oikonomopoulos <apoikos@debian.org>2018-03-22 12:04:55 +0200
commitc49e99631589113663b1a3ac691870421965a315 (patch)
treeac8127a5a6816f169a6656511bf131a35af2f74a /src/mongo/db/dbhelpers.h
parentd982a88efa79f510c03f1c6c8c63360680ebbf88 (diff)
New upstream version 3.4.14upstream/3.4.14
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r--src/mongo/db/dbhelpers.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h
index 650f265265d..59a4a317db7 100644
--- a/src/mongo/db/dbhelpers.h
+++ b/src/mongo/db/dbhelpers.h
@@ -141,11 +141,13 @@ struct Helpers {
/**
* Takes a namespace range, specified by a min and max and qualified by an index pattern,
* and removes all the documents in that range found by iterating
- * over the given index. Caller is responsible for insuring that min/max are
+ * over the given index. Caller is responsible for ensuring that min/max are
* compatible with the given keyPattern (e.g min={a:100} is compatible with
* keyPattern={a:1,b:1} since it can be extended to {a:100,b:minKey}, but
* min={b:100} is not compatible).
*
+ * Returns time spent waiting for majority replication in replWaitDuration.
+ *
* Caller must hold a write lock on 'ns'
*
* Returns -1 when no usable index exists
@@ -157,6 +159,7 @@ struct Helpers {
const KeyRange& range,
BoundInclusion boundInclusion,
const WriteConcernOptions& secondaryThrottle,
+ Milliseconds& replWaitDuration,
RemoveSaver* callback = NULL,
bool fromMigrate = false,
bool onlyRemoveOrphanedDocs = false);