diff options
author | jannaerin <golden.janna@gmail.com> | 2019-07-01 15:40:56 -0400 |
---|---|---|
committer | jannaerin <golden.janna@gmail.com> | 2019-07-03 10:53:50 -0400 |
commit | 65398870c2ec0b13a39b586996b8355cfd73d136 (patch) | |
tree | 674b664c6ad2c9eec41fb05df6e1ded4e834d1ce /src/mongo/s | |
parent | 1308268434fef5dc312dc80c59d161c4d7f325cf (diff) | |
download | mongo-65398870c2ec0b13a39b586996b8355cfd73d136.tar.gz |
SERVER-40848 Add debug logging to investigate difference in opTime returned by insert and changeStreams
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/commands/strategy.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/s/commands/strategy.cpp b/src/mongo/s/commands/strategy.cpp index f50597ba972..ba45f6cca80 100644 --- a/src/mongo/s/commands/strategy.cpp +++ b/src/mongo/s/commands/strategy.cpp @@ -135,10 +135,12 @@ void appendRequiredFieldsToResponse(OperationContext* opCtx, BSONObjBuilder* res // Add operationTime. auto operationTime = OperationTimeTracker::get(opCtx)->getMaxOperationTime(); if (operationTime != LogicalTime::kUninitialized) { + LOG(5) << "Appending operationTime: " << operationTime.asTimestamp(); responseBuilder->append(kOperationTime, operationTime.asTimestamp()); } else if (now != LogicalTime::kUninitialized) { // If we don't know the actual operation time, use the cluster time instead. This is // safe but not optimal because we can always return a later operation time than actual. + LOG(5) << "Appending clusterTime as operationTime " << now.asTimestamp(); responseBuilder->append(kOperationTime, now.asTimestamp()); } |