mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Remove unnecessary check.
This removed check will never be false as we pass the oplog selector that looks for 'o.drop' and we assume that you can get only one command per oplog record.
This commit is contained in:
@@ -196,12 +196,9 @@ MongoConnection.prototype._observeChangesWithOplog = function (
|
||||
var oplogEntryHandle = self._oplogHandle.onOplogEntry(
|
||||
cursorDescription.collectionName, function (op) {
|
||||
if (op.op === 'c') {
|
||||
// If it is not db.collection.drop(), ignore it
|
||||
if (op.o && _.isEqual(_.keys(op.o), ['drop'])) {
|
||||
published.each(function (fields, id) {
|
||||
remove(id);
|
||||
});
|
||||
}
|
||||
published.each(function (fields, id) {
|
||||
remove(id);
|
||||
});
|
||||
} else {
|
||||
// All other operators should be handled depending on phase
|
||||
oplogEntryHandlers[phase](op);
|
||||
|
||||
Reference in New Issue
Block a user