diff options
author | Andrew Morrow <acm@10gen.com> | 2013-08-01 14:22:12 -0400 |
---|---|---|
committer | Andrew Morrow <acm@10gen.com> | 2013-08-01 16:24:59 -0400 |
commit | ed239a91184f30940c2971aadbca3bb95106b93d (patch) | |
tree | 912db8f29de0a15e5f66ab143dfd7728472fbeff /src/mongo/db/restapi.cpp | |
parent | 3ffea6597a22d3570f0cd66850aa1975ed980131 (diff) | |
download | mongo-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.cpp | 2 |
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); |