diff options
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/storage_interface_impl.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp index 2e048f66c3f..47f2fd8d92f 100644 --- a/src/mongo/db/repl/storage_interface_impl.cpp +++ b/src/mongo/db/repl/storage_interface_impl.cpp @@ -43,7 +43,6 @@ #include "mongo/bson/bsonobjbuilder.h" #include "mongo/bson/util/bson_extract.h" #include "mongo/db/auth/authorization_manager.h" -#include "mongo/db/catalog/coll_mod.h" #include "mongo/db/catalog/collection.h" #include "mongo/db/catalog/collection_catalog_entry.h" #include "mongo/db/catalog/database.h" @@ -923,23 +922,6 @@ StatusWith<StorageInterface::CollectionCount> StorageInterfaceImpl::getCollectio return collection->numRecords(opCtx); } -StatusWith<OptionalCollectionUUID> StorageInterfaceImpl::getCollectionUUID( - OperationContext* opCtx, const NamespaceString& nss) { - AutoGetCollectionForRead autoColl(opCtx, nss); - - auto collectionResult = getCollection( - autoColl, nss, str::stream() << "Unable to get UUID of " << nss.ns() << " collection."); - if (!collectionResult.isOK()) { - return collectionResult.getStatus(); - } - auto collection = collectionResult.getValue(); - return collection->uuid(); -} - -Status StorageInterfaceImpl::upgradeUUIDSchemaVersionNonReplicated(OperationContext* opCtx) { - return updateUUIDSchemaVersionNonReplicated(opCtx, true); -} - void StorageInterfaceImpl::setStableTimestamp(ServiceContext* serviceCtx, SnapshotName snapshotName) { serviceCtx->getGlobalStorageEngine()->setStableTimestamp(snapshotName); |