diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2022-05-17 14:58:04 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-17 16:12:50 +0000 |
commit | b070532288487c1e70af51756587943aa092160b (patch) | |
tree | 27a8b442115d911d9a30ddcfbd9aaae17dd14015 /src/mongo/s/chunk_version.h | |
parent | 286d2a9de1fe9492899f90c015de814699e3dc20 (diff) | |
download | mongo-b070532288487c1e70af51756587943aa092160b.tar.gz |
SERVER-65530 Get rid of ChunkVersionArrayWronglyEncodedAsBSONObjFormat
Diffstat (limited to 'src/mongo/s/chunk_version.h')
-rw-r--r-- | src/mongo/s/chunk_version.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mongo/s/chunk_version.h b/src/mongo/s/chunk_version.h index 446247136d2..4a36eb12cde 100644 --- a/src/mongo/s/chunk_version.h +++ b/src/mongo/s/chunk_version.h @@ -213,6 +213,9 @@ public: return isOlderThan(otherVersion) || (*this == otherVersion); } + static ChunkVersion parse(const BSONElement& element); + void serialize(StringData field, BSONObjBuilder* builder); + /** * Serializes the version held by this object to 'out' in the form: * {..., <field>: {0:<combined major/minor, 1: <epoch>, 2: <Timestamp>}} @@ -259,12 +262,6 @@ public: BSONObjBuilder* builder) const; private: - /** - * Parses future ChunkVersion BSON format (from 6.1+): - * {t: timestamp, e: epoch, v: (major, minor)} - */ - static ChunkVersion _parse60Format(const BSONObj&); - // The following static functions will be deprecated. Only one function should be used to parse // ChunkVersion and is fromBSON. /** |