diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-02-18 17:11:00 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-02-18 17:11:40 -0500 |
commit | 16fdea66101dce875cc370314f00bc34dd407bf6 (patch) | |
tree | b8a27b992e7080581ac41fa6779366ccbd040ee4 /src/mongo/client/mongo_uri.cpp | |
parent | cace2c61d3bddf3dd9f82ead6b0bb6167d635d11 (diff) | |
download | mongo-16fdea66101dce875cc370314f00bc34dd407bf6.tar.gz |
SERVER-22714 Fix compile break
Diffstat (limited to 'src/mongo/client/mongo_uri.cpp')
-rw-r--r-- | src/mongo/client/mongo_uri.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/client/mongo_uri.cpp b/src/mongo/client/mongo_uri.cpp index 4b747a1f9fb..c54bd1ee1b3 100644 --- a/src/mongo/client/mongo_uri.cpp +++ b/src/mongo/client/mongo_uri.cpp @@ -127,7 +127,8 @@ StatusWith<MongoURI> MongoURI::parse(const std::string& url) { { std::vector<std::string> servers_split; - boost::algorithm::split(servers_split, matches[3].str(), boost::is_any_of(",")); + const std::string serversStr = matches[3].str(); + boost::algorithm::split(servers_split, serversStr, boost::is_any_of(",")); for (auto&& s : servers_split) { auto statusHostAndPort = HostAndPort::parse(s); if (!statusHostAndPort.isOK()) { |