-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
None
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
ALL
To ensure operations are idempotent, $push does things like:
"o2" : { "_id" : ObjectId("4fa9426c9c7d54fb76105a20"), "someArray" : { "$size" : 1 } // or "o2" : { "_id" : ObjectId("4fa9426c9c7d54fb76105a20"), "someArray" : null }
But the replication code ignores the second field:
BSONObjBuilder b; b.append(_id); // criteria is only _id field! updateObjects(ns, o, b.done(), true, false, false , debug, false, QueryPlanSelectionPolicy::idElseNatural() );
- duplicates
-
SERVER-3407 oplog is not idempotent for array operators, which could lead to silent data corruption (without journalling)
- Closed