diff options
Diffstat (limited to 'src/mongo/s/chunk_version.cpp')
-rw-r--r-- | src/mongo/s/chunk_version.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/s/chunk_version.cpp b/src/mongo/s/chunk_version.cpp index 2006071760c..4f0e067357b 100644 --- a/src/mongo/s/chunk_version.cpp +++ b/src/mongo/s/chunk_version.cpp @@ -104,4 +104,11 @@ void ChunkVersion::appendForCommands(BSONObjBuilder* builder) const { builder->appendArray(kShardVersion, toBSON()); } +BSONObj ChunkVersion::toBSON() const { + BSONArrayBuilder b; + b.appendTimestamp(_combined); + b.append(_epoch); + return b.arr(); +} + } // namespace mongo |