summaryrefslogtreecommitdiff
path: root/db/update.cpp
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-09-02 17:38:06 +0200
committerAntonin Kral <a.kral@bobek.cz>2010-09-02 17:38:06 +0200
commit90ef97fd85dd2a4d1763e06ea6eff9fa6d0ec631 (patch)
tree5585f53174e27e24a1203d4f0f41687e205765e0 /db/update.cpp
parent0a9f6162d232e4fb4b70ca07c4a65c0a12173cfc (diff)
downloadmongodb-90ef97fd85dd2a4d1763e06ea6eff9fa6d0ec631.tar.gz
Imported Upstream version 1.6.2
Diffstat (limited to 'db/update.cpp')
-rw-r--r--db/update.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/db/update.cpp b/db/update.cpp
index cbf93ba..d4a038b 100644
--- a/db/update.cpp
+++ b/db/update.cpp
@@ -527,7 +527,7 @@ namespace mongo {
string field = root + e.fieldName();
FieldCompareResult cmp = compareDottedFieldNames( m->second.m->fieldName , field );
- DEBUGUPDATE( "\t\t\t field:" << field << "\t mod:" << m->second.m->fieldName << "\t cmp:" << cmp );
+ DEBUGUPDATE( "\t\t\t field:" << field << "\t mod:" << m->second.m->fieldName << "\t cmp:" << cmp << "\t short: " << e.fieldName() );
switch ( cmp ){
@@ -550,6 +550,13 @@ namespace mongo {
e = es.next();
m++;
}
+ else {
+ // this is a very weird case
+ // have seen it in production, but can't reproduce
+ // this assert prevents an inf. loop
+ // but likely isn't the correct solution
+ assert(0);
+ }
continue;
}
case LEFT_BEFORE: // Mod on a field that doesn't exist