diff options
Diffstat (limited to 'src/mongo/db/s/collection_metadata.h')
| -rw-r--r-- | src/mongo/db/s/collection_metadata.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/mongo/db/s/collection_metadata.h b/src/mongo/db/s/collection_metadata.h index c8f5f110e6a..b691f94ebe5 100644 --- a/src/mongo/db/s/collection_metadata.h +++ b/src/mongo/db/s/collection_metadata.h @@ -93,21 +93,7 @@ public: } /** - * Returns the current shard's latest placement timestamp or Timestamp(0, 0) if it is not - * sharded. This value indicates the commit time of the latest placement change that this shard - * participated in and is used to answer the question of "did any chunks move since some - * timestamp". - * - * Will throw ShardInvalidatedForTargeting if _thisShardId is marked as stale by - * the CollectionMetadata's current chunk manager. - */ - Timestamp getShardMaxValidAfter() const { - return (isSharded() ? _cm->getMaxValidAfter(_thisShardId) : Timestamp(0, 0)); - } - - /** - * Returns the current shard's placement version for the collection or UNSHARDED if it is not - * sharded. + * Returns the current shard version for the collection or UNSHARDED if it is not sharded. * * Will not throw an exception if _thisShardId is marked as stale by the CollectionMetadata's * current chunk manager. Only use this function when logging the returned ChunkVersion. If the @@ -176,12 +162,6 @@ public: BSONObj extractDocumentKey(const BSONObj& doc) const; /** - * Static version of the function above. Only use this for internal sharding operations where - * shard key pattern is fixed and cannot change. - */ - static BSONObj extractDocumentKey(const ShardKeyPattern* shardKeyPattern, const BSONObj& doc); - - /** * String output of the collection and shard versions. */ std::string toStringBasic() const; |
