summaryrefslogtreecommitdiff
path: root/src/mongo/db/cloner.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-12-11 13:45:08 -0500
committerAndy Schwerin <schwerin@mongodb.com>2015-12-21 18:10:25 -0500
commit329132d8098db7922902b8a46ea4f46a94408188 (patch)
treeb0d131c3eb8bacdd8994e4cb19a8aec430e839c2 /src/mongo/db/cloner.h
parent7e7ea93facc494fbc393f7170d50b371fbf5f9f0 (diff)
downloadmongo-329132d8098db7922902b8a46ea4f46a94408188.tar.gz
SERVER-21958 Remove mayYield and mayBeInterrupted flags from cloner, as it is always set to true.
Diffstat (limited to 'src/mongo/db/cloner.h')
-rw-r--r--src/mongo/db/cloner.h33
1 files changed, 7 insertions, 26 deletions
diff --git a/src/mongo/db/cloner.h b/src/mongo/db/cloner.h
index 64f2a1477ed..5a89f191dd1 100644
--- a/src/mongo/db/cloner.h
+++ b/src/mongo/db/cloner.h
@@ -64,9 +64,7 @@ public:
const std::string& ns,
const BSONObj& query,
std::string& errmsg,
- bool mayYield,
- bool mayBeInterrupted,
- bool copyIndexes = true);
+ bool copyIndexes);
private:
void copy(OperationContext* txn,
@@ -76,8 +74,6 @@ private:
const NamespaceString& to_ns,
bool masterSameProcess,
bool slaveOk,
- bool mayYield,
- bool mayBeInterrupted,
Query q);
void copyIndexes(OperationContext* txn,
@@ -86,9 +82,7 @@ private:
const BSONObj& from_opts,
const NamespaceString& to_ns,
bool masterSameProcess,
- bool slaveOk,
- bool mayYield,
- bool mayBeInterrupted);
+ bool slaveOk);
struct Fun;
std::unique_ptr<DBClientBase> _conn;
@@ -102,28 +96,15 @@ private:
* repairDatabase need not use it.
*/
struct CloneOptions {
- CloneOptions() {
- slaveOk = false;
- useReplAuth = false;
- snapshot = true;
- mayYield = true;
- mayBeInterrupted = false;
-
- syncData = true;
- syncIndexes = true;
- }
-
std::string fromDB;
std::set<std::string> collsToIgnore;
- bool slaveOk;
- bool useReplAuth;
- bool snapshot;
- bool mayYield;
- bool mayBeInterrupted;
+ bool slaveOk = false;
+ bool useReplAuth = false;
+ bool snapshot = true;
- bool syncData;
- bool syncIndexes;
+ bool syncData = true;
+ bool syncIndexes = true;
};
} // namespace mongo