diff options
author | Ian Boros <ian.boros@10gen.com> | 2018-07-31 13:32:15 -0400 |
---|---|---|
committer | Ian Boros <ian.boros@10gen.com> | 2018-08-31 10:59:42 -0400 |
commit | 7b42fb9ded007e90bd4961c46afa046af92675a8 (patch) | |
tree | ab8158bdb18fb1145cb51f25036d935949ee4181 /src/mongo/db/query/index_entry.cpp | |
parent | dc076ee0d1c4b9463084b51694957dc63f8ba593 (diff) | |
download | mongo-7b42fb9ded007e90bd4961c46afa046af92675a8.tar.gz |
SERVER-35333 caching plans for allPaths indexes
Diffstat (limited to 'src/mongo/db/query/index_entry.cpp')
-rw-r--r-- | src/mongo/db/query/index_entry.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mongo/db/query/index_entry.cpp b/src/mongo/db/query/index_entry.cpp index 49898846d45..3d1226140f6 100644 --- a/src/mongo/db/query/index_entry.cpp +++ b/src/mongo/db/query/index_entry.cpp @@ -50,7 +50,7 @@ std::string IndexEntry::toString() const { sb << " unique"; } - sb << " name: '" << name << "'"; + sb << " name: '" << identifier << "'"; if (filterExpr) { sb << " filterExpr: " << filterExpr->toString(); @@ -80,4 +80,14 @@ bool IndexEntry::pathHasMultikeyComponent(StringData indexedField) const { MONGO_UNREACHABLE; } +std::ostream& operator<<(std::ostream& stream, const IndexEntry::Identifier& ident) { + stream << ident.toString(); + return stream; +} + +StringBuilder& operator<<(StringBuilder& builder, const IndexEntry::Identifier& ident) { + builder << ident.toString(); + return builder; +} + } // namespace mongo |