summaryrefslogtreecommitdiff
path: root/src/mongo/tools/restore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/tools/restore.cpp')
-rw-r--r--src/mongo/tools/restore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/tools/restore.cpp b/src/mongo/tools/restore.cpp
index e1f7d29c3f3..35daa4c6f4d 100644
--- a/src/mongo/tools/restore.cpp
+++ b/src/mongo/tools/restore.cpp
@@ -426,7 +426,7 @@ public:
}
}
}
- else if ( endsWith( _curns.c_str() , ".system.indexes" )) {
+ else if (NamespaceString(_curns).coll == "system.indexes") {
createIndex(obj, true);
}
else if (_drop && endsWith(_curns.c_str(), ".system.users") && _users.count(obj["user"].String())) {