diff options
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r-- | src/mongo/db/curop.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp index 06b19898927..c0332b2469b 100644 --- a/src/mongo/db/curop.cpp +++ b/src/mongo/db/curop.cpp @@ -634,7 +634,10 @@ string OpDebug::report(Client* client, if (queryHash) { s << " queryHash:" << unsignedIntToFixedLengthHex(*queryHash); + invariant(planCacheKey); + s << " planCacheKey:" << unsignedIntToFixedLengthHex(*planCacheKey); } + if (!errInfo.isOK()) { s << " ok:" << 0; if (!errInfo.reason().empty()) { @@ -719,6 +722,8 @@ void OpDebug::append(const CurOp& curop, if (queryHash) { b.append("queryHash", unsignedIntToFixedLengthHex(*queryHash)); + invariant(planCacheKey); + b.append("planCacheKey", unsignedIntToFixedLengthHex(*planCacheKey)); } { |