diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2021-06-09 11:06:21 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-14 12:26:49 +0000 |
commit | 92a8ceb94681642b438c20351f95c441498a29cf (patch) | |
tree | 7920ab4707ea0b6e9cc4707a2b3f73f7eecb7c7e /src/mongo/db/s/split_chunk_command.cpp | |
parent | 69ea6153374eaa35128871ea13e48cd8735f0f04 (diff) | |
download | mongo-92a8ceb94681642b438c20351f95c441498a29cf.tar.gz |
SERVER-56654 Do not use the collection distributed lock for chunk splits
Diffstat (limited to 'src/mongo/db/s/split_chunk_command.cpp')
-rw-r--r-- | src/mongo/db/s/split_chunk_command.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mongo/db/s/split_chunk_command.cpp b/src/mongo/db/s/split_chunk_command.cpp index 3fe52d2c585..9a17b009b2d 100644 --- a/src/mongo/db/s/split_chunk_command.cpp +++ b/src/mongo/db/s/split_chunk_command.cpp @@ -47,11 +47,6 @@ #include "mongo/util/str.h" namespace mongo { - -using std::string; -using std::unique_ptr; -using std::vector; - namespace { class SplitChunkCommand : public ErrmsgCommandDeprecated { @@ -116,7 +111,7 @@ public: auto chunkRange = uassertStatusOK(ChunkRange::fromBSON(cmdObj)); - string shardName; + std::string shardName; auto parseShardNameStatus = bsonExtractStringField(cmdObj, "from", &shardName); uassertStatusOK(parseShardNameStatus); @@ -125,7 +120,7 @@ public: "Received splitChunk request", "request"_attr = redact(cmdObj)); - vector<BSONObj> splitKeys; + std::vector<BSONObj> splitKeys; { BSONElement splitKeysElem; auto splitKeysElemStatus = |