Skip to content
This repository was archived by the owner on Mar 14, 2019. It is now read-only.
This repository was archived by the owner on Mar 14, 2019. It is now read-only.

When mongoDB split read and write, "find after update" will be wrong #1047

@jacky-cyber

Description

@jacky-cyber

https://github.com/CollectionFS/Meteor-CollectionFS/blob/45f7288f9c9e4470e15f7ad927a634704064e4da/packages/tempstore/tempStore.js#L294

tracker.update(selector, {$set: setObj});
var temp = tracker.findOne(selector);
if (!temp) {
      FS.debug && console.log('NOT FOUND FROM TEMPSTORE => EXIT (REMOVED)');
      return;
}

// Get updated chunkCount
 var chunkCount = FS.Utility.size(temp.keys);

The chunkCount will be 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions