summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shardsvr_split_chunk_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/shardsvr_split_chunk_command.cpp')
-rw-r--r--src/mongo/db/s/shardsvr_split_chunk_command.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/shardsvr_split_chunk_command.cpp b/src/mongo/db/s/shardsvr_split_chunk_command.cpp
index f547cfb9543..88e7f7aa8b3 100644
--- a/src/mongo/db/s/shardsvr_split_chunk_command.cpp
+++ b/src/mongo/db/s/shardsvr_split_chunk_command.cpp
@@ -99,7 +99,8 @@ public:
BSONObjBuilder& result) override {
uassertStatusOK(ShardingState::get(opCtx)->canAcceptShardedCommands());
- const NamespaceString nss(parseNs({boost::none, dbname}, cmdObj));
+ const NamespaceString nss(
+ parseNs(DatabaseNameUtil::deserialize(boost::none, dbname), cmdObj));
// Check whether parameters passed to splitChunk are sound
BSONObj keyPatternObj;