diff options
author | Ian Boros <ian.boros@10gen.com> | 2018-10-09 12:22:08 -0400 |
---|---|---|
committer | Ian Boros <ian.boros@10gen.com> | 2018-11-06 11:24:25 -0500 |
commit | 36d4668e854d8bd17e8b684dbbf42b3b0903bbe7 (patch) | |
tree | 4815a0b5a9b712c5fb93f59e6a57d4cd6f0ae2f7 /src/mongo/db/curop.cpp | |
parent | a090ee789498e709eef4c2d28bc1326070c1e67a (diff) | |
download | mongo-36d4668e854d8bd17e8b684dbbf42b3b0903bbe7.tar.gz |
SERVER-33303 Add stable plan cache key and use for index filters
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)); } { |