summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.cpp
diff options
context:
space:
mode:
authorLuke Pearson <luke.pearson2@gmail.com>2019-06-07 13:35:02 +1000
committerLuke Pearson <luke.pearson@mongodb.com>2019-06-12 12:05:50 +1000
commitbc2514ef2fefa8460cbae78aa70e0817b1100573 (patch)
tree368db463f2a97df6f023498af2bb474d86fef2a1 /src/mongo/db/curop.cpp
parentfdb56a92bfea1af0344044856df04af4d464a3b4 (diff)
downloadmongo-bc2514ef2fefa8460cbae78aa70e0817b1100573.tar.gz
SERVER-41351 Improve error message when failing to collect storage stats
(cherry picked from commit 30b84ce55b16ebf084786c71dc00959dba5c3b48)
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r--src/mongo/db/curop.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp
index 0047f47f59c..aef663364b0 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -422,12 +422,12 @@ bool CurOp::completeAndLogOperation(OperationContext* opCtx,
if (lk.isLocked()) {
_debug.storageStats = opCtx->recoveryUnit()->getOperationStatistics();
} else {
- log(component) << "Timed out obtaining lock while trying to gather storage "
- "statistics for a slow operation";
+ warning(component) << "Unable to gather storage statistics for a slow "
+ "operation due to lock aquire timeout";
}
} catch (const ExceptionForCat<ErrorCategory::Interruption>&) {
- log(component)
- << "Interrupted while trying to gather storage statistics for a slow operation";
+ warning(component) << "Unable to gather storage statistics for a slow "
+ "operation due to interrupt";
}
}
log(component) << _debug.report(client,