diff options
Diffstat (limited to 'db/query.cpp')
-rw-r--r-- | db/query.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/query.cpp b/db/query.cpp index d35cab071ef..c39f38b1392 100644 --- a/db/query.cpp +++ b/db/query.cpp @@ -362,7 +362,7 @@ int _updateObjects(const char *ns, JSObj updateobj, JSObj pattern, bool upsert, set<string>& idxKeys = ndt.indexKeys(); for( vector<Mod>::iterator i = mods.begin(); i != mods.end(); i++ ) { if( idxKeys.count(i->fieldName) ) { - assert(false); + uassert("can't $inc/$set an indexed field", false); } } |