diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-01-24 15:46:28 -0500 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-01-30 09:23:10 -0500 |
commit | 03028591aec8f6e8f08c8c2be2f829772822d7dd (patch) | |
tree | b41905dc8f1ff01571c6b507cba4cce1c32398be /src/mongo/s/chunk_version.h | |
parent | 5605483c22231697d163005a4d6cf9ff194a179d (diff) | |
download | mongo-03028591aec8f6e8f08c8c2be2f829772822d7dd.tar.gz |
SERVER-27804 add additional parsers to ChunkType for shard's config.chunks.uuid collections
Diffstat (limited to 'src/mongo/s/chunk_version.h')
-rw-r--r-- | src/mongo/s/chunk_version.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/s/chunk_version.h b/src/mongo/s/chunk_version.h index 05517ffb609..0503636f146 100644 --- a/src/mongo/s/chunk_version.h +++ b/src/mongo/s/chunk_version.h @@ -99,6 +99,13 @@ public: static StatusWith<ChunkVersion> parseFromBSONForChunk(const BSONObj& obj); /** + * Interprets the lastmod (combined major/minor) from a BSONObj without an epoch + * { ..., lastmod: [ <combined major/minor> ], ... } + * and then sets the returned ChunkVersion's epoch field to 'epoch'. + */ + static StatusWith<ChunkVersion> parseFromBSONAndSetEpoch(const BSONObj& obj, const OID& epoch); + + /** * Indicates a dropped collection. All components are zeroes (OID is zero time, zero * machineId/inc). */ |