summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2019-12-26 14:46:45 +0000
committerevergreen <evergreen@mongodb.com>2019-12-26 14:46:45 +0000
commit6e26f1ac12b37a61428c53ffc5276c18a1a32cfa (patch)
tree904883ff97653ab8aa3a5d0ad91c5c9f0f458430 /src
parent5aed315a24e042cd34473da49cacd5dfbe263355 (diff)
downloadmongo-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.cpp2
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);
}
/**