diff options
author | Lamont Nelson <lamont.nelson@mongodb.com> | 2020-02-27 12:18:11 -0500 |
---|---|---|
committer | Lamont Nelson <lamont.nelson@mongodb.com> | 2020-02-27 12:18:11 -0500 |
commit | 0514dd5e06fade374c872b17cd5a5322fc952a30 (patch) | |
tree | ba3a6a848d43d9e9d2ce6c574e5ff9b3cdfba848 | |
parent | 8456d02e95fba40dfef8a01422e472b03c318be7 (diff) | |
download | mongo-0514dd5e06fade374c872b17cd5a5322fc952a30.tar.gz |
remove refs
-rw-r--r-- | src/mongo/client/sdam/server_selector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/client/sdam/server_selector.h b/src/mongo/client/sdam/server_selector.h index 345319ac7e4..1a332bcb5c2 100644 --- a/src/mongo/client/sdam/server_selector.h +++ b/src/mongo/client/sdam/server_selector.h @@ -106,7 +106,7 @@ private: invariant(topologyDescription->getPrimary()); const auto& primaryDescription = *topologyDescription->getPrimary(); - const auto& primaryLastWriteDate = primaryDescription->getLastWriteDate() + const auto primaryLastWriteDate = primaryDescription->getLastWriteDate() ? *primaryDescription->getLastWriteDate() : Date_t::min(); @@ -123,7 +123,7 @@ private: if (s->getType() != ServerType::kRSSecondary) continue; - const auto& sLastWriteDate = + const auto sLastWriteDate = s->getLastWriteDate() ? *s->getLastWriteDate() : Date_t::min(); if (sLastWriteDate > maxLastWriteDate) { |