diff options
author | Matthew Russotto <matthew.russotto@10gen.com> | 2020-04-09 14:29:54 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-13 21:23:38 +0000 |
commit | c0c63ceadc49b95470b1dc0f725f0dca91e86200 (patch) | |
tree | 1cd439de69cef27ac2e74b5cb0d4e13846d1cf08 /src/mongo/db/repl/collection_cloner.cpp | |
parent | 5388b23cb85e84eb4ce5a2c03b250e62ff89ea1f (diff) | |
download | mongo-c0c63ceadc49b95470b1dc0f725f0dca91e86200.tar.gz |
SERVER-46809 Initial sync should assume resume supported if wire version is newer than 4.4
Diffstat (limited to 'src/mongo/db/repl/collection_cloner.cpp')
-rw-r--r-- | src/mongo/db/repl/collection_cloner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/collection_cloner.cpp b/src/mongo/db/repl/collection_cloner.cpp index a0e05d7568e..6ea2c468afc 100644 --- a/src/mongo/db/repl/collection_cloner.cpp +++ b/src/mongo/db/repl/collection_cloner.cpp @@ -95,7 +95,7 @@ CollectionCloner::CollectionCloner(const NamespaceString& sourceNss, _stats.ns = _sourceNss.ns(); // Find out whether the sync source supports resumable queries. - _resumeSupported = (getClient()->getMaxWireVersion() == WireVersion::RESUMABLE_INITIAL_SYNC); + _resumeSupported = (getClient()->getMaxWireVersion() >= WireVersion::RESUMABLE_INITIAL_SYNC); } BaseCloner::ClonerStages CollectionCloner::getStages() { |