From 9c3099ca1e4a33af44771543626601ab3eab8750 Mon Sep 17 00:00:00 2001 From: Dianna Hohensee Date: Fri, 2 Jun 2017 16:26:32 -0400 Subject: SERVER-27713 create an OpObserver for shard chunk metadata updates --- src/mongo/db/s/collection_range_deleter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mongo/db/s/collection_range_deleter.cpp') diff --git a/src/mongo/db/s/collection_range_deleter.cpp b/src/mongo/db/s/collection_range_deleter.cpp index 2392305fe5d..fb2197b8d0c 100644 --- a/src/mongo/db/s/collection_range_deleter.cpp +++ b/src/mongo/db/s/collection_range_deleter.cpp @@ -126,11 +126,11 @@ auto CollectionRangeDeleter::cleanUpNextRange(OperationContext* opCtx, // documents in the range -- excepting any queries with a read-concern option // 'ignoreChunkMigration' try { - auto& adminSystemVersion = NamespaceString::kConfigCollectionNamespace; + auto& serverConfigurationNss = NamespaceString::kServerConfigurationNamespace; auto epoch = scopedCollectionMetadata->getCollVersion().epoch(); - AutoGetCollection autoAdmin(opCtx, adminSystemVersion, MODE_IX); + AutoGetCollection autoAdmin(opCtx, serverConfigurationNss, MODE_IX); - Helpers::upsert(opCtx, adminSystemVersion.ns(), + Helpers::upsert(opCtx, serverConfigurationNss.ns(), BSON("_id" << "startRangeDeletion" << "ns" << nss.ns() << "epoch" << epoch << "min" << range->getMin() << "max" << range->getMax())); -- cgit v1.2.1