summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp')
-rw-r--r--src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp b/src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp
index 2381a80fff6..38a9d2b3b09 100644
--- a/src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp
+++ b/src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp
@@ -163,6 +163,12 @@ void KVCollectionCatalogEntry::updateFlags(OperationContext* txn, int newValue)
_catalog->putMetaData(txn, ns().toString(), md);
}
+void KVCollectionCatalogEntry::clearTempFlag(OperationContext* txn) {
+ MetaData md = _getMetaData(txn);
+ md.options.temp = false;
+ _catalog->putMetaData(txn, ns().ns(), md);
+}
+
void KVCollectionCatalogEntry::updateValidator(OperationContext* txn,
const BSONObj& validator,
StringData validationLevel,