summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/sharded_connection_info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/sharded_connection_info.cpp')
-rw-r--r--src/mongo/db/s/sharded_connection_info.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/sharded_connection_info.cpp b/src/mongo/db/s/sharded_connection_info.cpp
index 13b60b08bae..24108490b01 100644
--- a/src/mongo/db/s/sharded_connection_info.cpp
+++ b/src/mongo/db/s/sharded_connection_info.cpp
@@ -73,12 +73,12 @@ void ShardedConnectionInfo::reset(Client* client) {
clientSCI(client) = boost::none;
}
-const ChunkVersion ShardedConnectionInfo::getVersion(const std::string& ns) const {
+ChunkVersion ShardedConnectionInfo::getVersion(const std::string& ns) const {
NSVersionMap::const_iterator it = _versions.find(ns);
if (it != _versions.end()) {
return it->second;
} else {
- return ChunkVersion(0, 0, OID());
+ return ChunkVersion::UNSHARDED();
}
}