summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/storage_interface_impl.cpp
diff options
context:
space:
mode:
authorMaria van Keulen <maria@mongodb.com>2017-10-09 14:48:46 -0400
committerMaria van Keulen <maria@mongodb.com>2017-10-09 14:49:16 -0400
commit9eba349099bdc58f3ad4e55aa2e846d6d0244f41 (patch)
tree678f5a046fbbb5bab30c70b608206957c32df6ac /src/mongo/db/repl/storage_interface_impl.cpp
parent29342abd41293c78104c288cb1c4807df94d8de2 (diff)
downloadmongo-9eba349099bdc58f3ad4e55aa2e846d6d0244f41.tar.gz
Revert "SERVER-30131 Ensure collections on local have UUIDs"
This reverts commit 84690cb878db1b231c00d3c9fcb0005ca7cb6361.
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r--src/mongo/db/repl/storage_interface_impl.cpp18
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);