summaryrefslogtreecommitdiff
path: root/src/mongo/logger
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2018-03-28 13:29:29 -0400
committerDaniel Gottlieb <daniel.gottlieb@mongodb.com>2018-03-28 13:29:43 -0400
commit8cb25511ffb777ad448775f330adcddaa1ed8571 (patch)
treed47b562101342fa3373dd45d74dace608adce11b /src/mongo/logger
parenta6819429cb649bdd9205c8d4fb0dad2ae1ab56ed (diff)
downloadmongo-8cb25511ffb777ad448775f330adcddaa1ed8571.tar.gz
SERVER-34154: Add Recovery logger under storage for checkpoint and catalog debugging.
Have the rollback fuzzer, jepsen and replica set kill secondaries use it.
Diffstat (limited to 'src/mongo/logger')
-rw-r--r--src/mongo/logger/log_component.cpp5
-rw-r--r--src/mongo/logger/log_component.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/logger/log_component.cpp b/src/mongo/logger/log_component.cpp
index 72b87ddb3f3..647b046bd32 100644
--- a/src/mongo/logger/log_component.cpp
+++ b/src/mongo/logger/log_component.cpp
@@ -77,6 +77,7 @@ LogComponent LogComponent::parent() const {
DECLARE_LOG_COMPONENT_PARENT(kBridge, kNetwork);
DECLARE_LOG_COMPONENT_PARENT(kReplicationHeartbeats, kReplication);
DECLARE_LOG_COMPONENT_PARENT(kReplicationRollback, kReplication);
+ DECLARE_LOG_COMPONENT_PARENT(kStorageRecovery, kStorage);
case kNumLogComponents:
return kNumLogComponents;
default:
@@ -115,6 +116,8 @@ StringData LogComponent::toStringData() const {
return "sharding"_sd;
case kStorage:
return "storage"_sd;
+ case kStorageRecovery:
+ return "recovery"_sd;
case kJournal:
return "journal"_sd;
case kWrite:
@@ -191,6 +194,8 @@ StringData LogComponent::getNameForLog() const {
return "SHARDING"_sd;
case kStorage:
return "STORAGE "_sd;
+ case kStorageRecovery:
+ return "RECOVERY"_sd;
case kJournal:
return "JOURNAL "_sd;
case kWrite:
diff --git a/src/mongo/logger/log_component.h b/src/mongo/logger/log_component.h
index 17e5809b704..76eb1b005d6 100644
--- a/src/mongo/logger/log_component.h
+++ b/src/mongo/logger/log_component.h
@@ -57,6 +57,7 @@ public:
kReplicationRollback,
kSharding,
kStorage,
+ kStorageRecovery,
kJournal,
kWrite,
kFTDC,