summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shard_metadata_util.h
diff options
context:
space:
mode:
authorJordi Serra Torrens <jordi.serra-torrens@mongodb.com>2020-12-01 14:27:57 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-12-03 10:45:04 +0000
commite5e066a1daf41b2bcb414e4a4729e4fd3b0c1a32 (patch)
tree64da70f77a670e7e6e2cfd8d883e57a23fb5113e /src/mongo/db/s/shard_metadata_util.h
parentd965a6f8ecc85715cfe4ca8786d29c9b68a0cc1a (diff)
downloadmongo-e5e066a1daf41b2bcb414e4a4729e4fd3b0c1a32.tar.gz
SERVER-52588 Making the upgrade/downgrade process work for the Epoch to ClusterTime migration (PART-2)
Diffstat (limited to 'src/mongo/db/s/shard_metadata_util.h')
-rw-r--r--src/mongo/db/s/shard_metadata_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/s/shard_metadata_util.h b/src/mongo/db/s/shard_metadata_util.h
index f863e406941..376b29eca56 100644
--- a/src/mongo/db/s/shard_metadata_util.h
+++ b/src/mongo/db/s/shard_metadata_util.h
@@ -221,6 +221,12 @@ 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