diff options
author | James Wahlin <james.wahlin@10gen.com> | 2015-12-21 13:42:21 -0500 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2016-01-04 11:49:58 -0500 |
commit | 2f22fa93d4935ad9091264acf331f9a02d02954b (patch) | |
tree | 3c6926e67f80021f87d4ead2b8b296c5fef2896b | |
parent | cac4b59579191300d46eefcb786ce0382aa68817 (diff) | |
download | mongo-2f22fa93d4935ad9091264acf331f9a02d02954b.tar.gz |
SERVER-20083 Log index filter change at default level
(cherry picked from commit dbd58e06914b23ed50605820515f3849baf2cbce)
-rw-r--r-- | src/mongo/db/commands/index_filter_commands.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/commands/index_filter_commands.cpp b/src/mongo/db/commands/index_filter_commands.cpp index 20fb72fcdfd..24073994ee0 100644 --- a/src/mongo/db/commands/index_filter_commands.cpp +++ b/src/mongo/db/commands/index_filter_commands.cpp @@ -26,6 +26,8 @@ * it in the license file. */ +#include "mongo/platform/basic.h" + #include <string> #include <sstream> @@ -39,6 +41,7 @@ #include "mongo/db/commands/index_filter_commands.h" #include "mongo/db/commands/plan_cache_commands.h" #include "mongo/db/catalog/collection.h" +#include "mongo/util/log.h" namespace { @@ -257,6 +260,9 @@ namespace mongo { // Remove entry from plan cache planCache->remove(*cq); + + LOG(0) << "Removed index filter on " << ns << " " << cq->toStringShort(); + return Status::OK(); } @@ -301,6 +307,8 @@ namespace mongo { planCache->remove(*cq); } + LOG(0) << "Removed all index filters for collection: " << ns; + return Status::OK(); } @@ -363,6 +371,8 @@ namespace mongo { // Remove entry from plan cache. planCache->remove(*cq); + LOG(0) << "Index filter set on " << ns << " " << cq->toStringShort() << " " << indexesElt; + return Status::OK(); } |