summaryrefslogtreecommitdiff
path: root/src/mongo/s/chunk_version.h
diff options
context:
space:
mode:
authorAllison Easton <allison.easton@mongodb.com>2022-07-29 10:34:03 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-29 11:43:25 +0000
commit87df071285348663b750172dc6979f4cb28b5508 (patch)
tree1851129a78484d0b545b2bc86c626e19b9701331 /src/mongo/s/chunk_version.h
parentfc07225f8eb33456bbb67842db7d7112a0ee683b (diff)
downloadmongo-87df071285348663b750172dc6979f4cb28b5508.tar.gz
SERVER-67400 Create ShardVersion type
Diffstat (limited to 'src/mongo/s/chunk_version.h')
-rw-r--r--src/mongo/s/chunk_version.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/s/chunk_version.h b/src/mongo/s/chunk_version.h
index 2a7911bfefe..f573c406822 100644
--- a/src/mongo/s/chunk_version.h
+++ b/src/mongo/s/chunk_version.h
@@ -114,10 +114,10 @@ protected:
class ChunkVersion : public CollectionGeneration, public CollectionPlacement {
public:
/**
- * The name for the shard version information field, which shard-aware commands should include
- * if they want to convey shard version.
+ * The name for the chunk version information field, which ddl operations use to send only
+ * the placement information. String is shardVersion for compatibility with previous versions.
*/
- static constexpr StringData kShardVersionField = "shardVersion"_sd;
+ static constexpr StringData kChunkVersionField = "shardVersion"_sd;
ChunkVersion(CollectionGeneration geneneration, CollectionPlacement placement)
: CollectionGeneration(geneneration), CollectionPlacement(placement) {}
@@ -221,7 +221,7 @@ public:
}
static ChunkVersion parse(const BSONElement& element);
- void serializeToBSON(StringData field, BSONObjBuilder* builder) const;
+ void serialize(StringData field, BSONObjBuilder* builder) const;
std::string toString() const;
};