diff options
Diffstat (limited to 'src/mongo/db/s/shard_metadata_util.h')
-rw-r--r-- | src/mongo/db/s/shard_metadata_util.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/mongo/db/s/shard_metadata_util.h b/src/mongo/db/s/shard_metadata_util.h index 45bee780dd0..8d7315e7e6e 100644 --- a/src/mongo/db/s/shard_metadata_util.h +++ b/src/mongo/db/s/shard_metadata_util.h @@ -202,6 +202,13 @@ Status updateShardChunks(OperationContext* opCtx, const OID& currEpoch); /** + * Adds/removes the timestamp of the 'nss' entry in config.cache.collections + */ +void updateTimestampOnShardCollections(OperationContext* opCtx, + const NamespaceString& nss, + const boost::optional<Timestamp>& timestamp); + +/** * Deletes locally persisted chunk metadata associated with 'nss': drops the chunks collection * and removes the collections collection entry. * @@ -222,19 +229,5 @@ void dropChunks(OperationContext* opCtx, const NamespaceString& nss); */ Status deleteDatabasesEntry(OperationContext* opCtx, StringData dbName); -/** - * Downgrades the config.cache.databases entries to prior 4.9 version. More specifically, it removes - * the 'version.timestamp' field from all the documents in config.cache.databases. - * - */ -void downgradeShardConfigDatabasesEntriesToPre49(OperationContext* opCtx); - -/** - * Downgrades the config.cache.collections entries to prior 4.9 version. More specifically, it - * removes the allowMigrations and timestamp fields from all the documents of - * config.cache.collections - */ -void downgradeShardConfigCollectionEntriesToPre49(OperationContext* opCtx); - } // namespace shardmetadatautil } // namespace mongo |