summaryrefslogtreecommitdiff
path: root/src/mongo/db/restapi.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@10gen.com>2013-08-01 14:22:12 -0400
committerAndrew Morrow <acm@10gen.com>2013-08-01 16:24:59 -0400
commited239a91184f30940c2971aadbca3bb95106b93d (patch)
tree912db8f29de0a15e5f66ab143dfd7728472fbeff /src/mongo/db/restapi.cpp
parent3ffea6597a22d3570f0cd66850aa1975ed980131 (diff)
downloadmongo-ed239a91184f30940c2971aadbca3bb95106b93d.tar.gz
Fix oddly formed conditional in rest interface query parsing
Diffstat (limited to 'src/mongo/db/restapi.cpp')
-rw-r--r--src/mongo/db/restapi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/restapi.cpp b/src/mongo/db/restapi.cpp
index 2822fdafcb4..adfd7eb5994 100644
--- a/src/mongo/db/restapi.cpp
+++ b/src/mongo/db/restapi.cpp
@@ -135,7 +135,7 @@ namespace mongo {
while ( i.more() ) {
BSONElement e = i.next();
string name = e.fieldName();
- if ( ! name.find( "filter_" ) == 0 )
+ if ( name.find( "filter_" ) != 0 )
continue;
string field = name.substr(7);