summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_repair_observer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/storage_repair_observer.cpp')
-rw-r--r--src/mongo/db/storage/storage_repair_observer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/storage/storage_repair_observer.cpp b/src/mongo/db/storage/storage_repair_observer.cpp
index f88f61616d5..1921b0ee42e 100644
--- a/src/mongo/db/storage/storage_repair_observer.cpp
+++ b/src/mongo/db/storage/storage_repair_observer.cpp
@@ -158,7 +158,7 @@ void StorageRepairObserver::_invalidateReplConfigIfNeeded(OperationContext* opCt
// If this node is a standalone, this would lead to a confusing error message if it were
// added to a replica set later on.
BSONObj config;
- if (!Helpers::getSingleton(opCtx, kConfigNss.ns().c_str(), config)) {
+ if (!Helpers::getSingleton(opCtx, kConfigNss, config)) {
return;
}
if (config.hasField(repl::ReplSetConfig::kRepairedFieldName)) {
@@ -166,7 +166,7 @@ void StorageRepairObserver::_invalidateReplConfigIfNeeded(OperationContext* opCt
}
BSONObjBuilder configBuilder(config);
configBuilder.append(repl::ReplSetConfig::kRepairedFieldName, true);
- Helpers::putSingleton(opCtx, kConfigNss.ns().c_str(), configBuilder.obj());
+ Helpers::putSingleton(opCtx, kConfigNss, configBuilder.obj());
JournalFlusher::get(opCtx)->waitForJournalFlush();
}