diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2019-12-26 14:46:45 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-12-26 14:46:45 +0000 |
commit | 6e26f1ac12b37a61428c53ffc5276c18a1a32cfa (patch) | |
tree | 904883ff97653ab8aa3a5d0ad91c5c9f0f458430 /src | |
parent | 5aed315a24e042cd34473da49cacd5dfbe263355 (diff) | |
download | mongo-6e26f1ac12b37a61428c53ffc5276c18a1a32cfa.tar.gz |
SERVER-45292 fix isMetadataDifferent logic in chunk manager targeter
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/s/write_ops/chunk_manager_targeter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/write_ops/chunk_manager_targeter.cpp b/src/mongo/s/write_ops/chunk_manager_targeter.cpp index a36fb2b4feb..c1188633c7d 100644 --- a/src/mongo/s/write_ops/chunk_manager_targeter.cpp +++ b/src/mongo/s/write_ops/chunk_manager_targeter.cpp @@ -322,7 +322,7 @@ bool isMetadataDifferent(const std::shared_ptr<ChunkManager>& managerA, return managerA->getVersion() != managerB->getVersion(); } - return databaseVersion::equal(dbVersionA, dbVersionB); + return !databaseVersion::equal(dbVersionA, dbVersionB); } /** |