summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/index_entry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/index_entry.cpp')
-rw-r--r--src/mongo/db/query/index_entry.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/mongo/db/query/index_entry.cpp b/src/mongo/db/query/index_entry.cpp
index 78a0d1efc4a..13153465387 100644
--- a/src/mongo/db/query/index_entry.cpp
+++ b/src/mongo/db/query/index_entry.cpp
@@ -34,33 +34,33 @@
namespace mongo {
- std::string IndexEntry::toString() const {
- StringBuilder sb;
- sb << "kp: " << keyPattern;
+std::string IndexEntry::toString() const {
+ StringBuilder sb;
+ sb << "kp: " << keyPattern;
- if (multikey) {
- sb << " multikey";
- }
-
- if (sparse) {
- sb << " sparse";
- }
+ if (multikey) {
+ sb << " multikey";
+ }
- if (unique) {
- sb << " unique";
- }
+ if (sparse) {
+ sb << " sparse";
+ }
- sb << " name: '" << name << "'";
+ if (unique) {
+ sb << " unique";
+ }
- if (filterExpr) {
- sb << " filterExpr: " << filterExpr->toString();
- }
+ sb << " name: '" << name << "'";
- if (!infoObj.isEmpty()) {
- sb << " io: " << infoObj;
- }
+ if (filterExpr) {
+ sb << " filterExpr: " << filterExpr->toString();
+ }
- return sb.str();
+ if (!infoObj.isEmpty()) {
+ sb << " io: " << infoObj;
}
+ return sb.str();
+}
+
} // namespace mongo