diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-06-02 16:26:32 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-06-15 09:18:13 -0400 |
commit | 9c3099ca1e4a33af44771543626601ab3eab8750 (patch) | |
tree | 6888bab241972834774a0678faa78674195e268b /src/mongo/db/s/collection_range_deleter.cpp | |
parent | 59ea14f97808e343a4a10a1b5352b7096b695e38 (diff) | |
download | mongo-9c3099ca1e4a33af44771543626601ab3eab8750.tar.gz |
SERVER-27713 create an OpObserver for shard chunk metadata updates
Diffstat (limited to 'src/mongo/db/s/collection_range_deleter.cpp')
-rw-r--r-- | src/mongo/db/s/collection_range_deleter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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())); |