summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeni Dobranov <evgeni.dobranov@mongodb.com>2019-08-30 16:33:26 +0000
committerevergreen <evergreen@mongodb.com>2019-08-30 16:33:26 +0000
commit5490c56f35ffe152c3d736f9e5ad6438fd47b3dd (patch)
tree8a252f0d601c09565934b89dcad6766675a72f47
parent2cba3bf3640aed0121a05f6396cedadd10a06880 (diff)
downloadmongo-5490c56f35ffe152c3d736f9e5ad6438fd47b3dd.tar.gz
SERVER-42020 Log commits of registerChanges
-rw-r--r--buildscripts/resmokeconfig/suites/replica_sets_initsync_jscore_passthrough.yml1
-rw-r--r--src/mongo/db/storage/recovery_unit.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/buildscripts/resmokeconfig/suites/replica_sets_initsync_jscore_passthrough.yml b/buildscripts/resmokeconfig/suites/replica_sets_initsync_jscore_passthrough.yml
index 505d272969c..85517d6ffbd 100644
--- a/buildscripts/resmokeconfig/suites/replica_sets_initsync_jscore_passthrough.yml
+++ b/buildscripts/resmokeconfig/suites/replica_sets_initsync_jscore_passthrough.yml
@@ -60,5 +60,6 @@ executor:
enableTestCommands: 1
collectionClonerBatchSize: 10
initialSyncOplogFetcherBatchSize: 10
+ logLevel: 2
num_nodes: 2
start_initial_sync_node: True
diff --git a/src/mongo/db/storage/recovery_unit.cpp b/src/mongo/db/storage/recovery_unit.cpp
index 219e7544750..eb389eaf8b5 100644
--- a/src/mongo/db/storage/recovery_unit.cpp
+++ b/src/mongo/db/storage/recovery_unit.cpp
@@ -43,6 +43,7 @@ void RecoveryUnit::registerChange(Change* change) {
void RecoveryUnit::commitRegisteredChanges(boost::optional<Timestamp> commitTimestamp) {
for (auto& change : _changes) {
try {
+ LOG(2) << "CUSTOM COMMIT " << redact(demangleName(typeid(*change)));
change->commit(commitTimestamp);
} catch (...) {
std::terminate();