diff options
Diffstat (limited to 'src/mongo/s/chunk_manager_targeter.cpp')
-rw-r--r-- | src/mongo/s/chunk_manager_targeter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/chunk_manager_targeter.cpp b/src/mongo/s/chunk_manager_targeter.cpp index 7ae106245e6..83ca4cfe07c 100644 --- a/src/mongo/s/chunk_manager_targeter.cpp +++ b/src/mongo/s/chunk_manager_targeter.cpp @@ -48,7 +48,7 @@ namespace mongo { /** * Helper to get the DBConfigPtr object in an exception-safe way. */ - static bool getDBConfigSafe( const StringData& db, DBConfigPtr& config, string* errMsg ) { + static bool getDBConfigSafe( StringData db, DBConfigPtr& config, string* errMsg ) { try { config = grid.getDBConfig( db, true ); if ( !config ) *errMsg = stream() << "could not load or create database " << db; @@ -491,7 +491,7 @@ namespace mongo { else return CompareResult_GTE; } - ChunkVersion getShardVersion( const StringData& shardName, + ChunkVersion getShardVersion( StringData shardName, const ChunkManagerPtr& manager, const ShardPtr& primary ) { |