Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr Robot committed Jan 12, 2016
1 parent 593960c commit a12d2b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/tempstore/tempStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ FS.TempStore.createWriteStream = function(fileObj, options) {
// Progress
self.emit('progress', fileObj, chunkNum, chunkCount, chunkSum, result);

fileObj.update({ $set: {node_id: process.env.METEOR_PARENT_PID} });

// If upload is completed
if (chunkCount === chunkSum) {
// We no longer need the chunk info
Expand Down
1 change: 1 addition & 0 deletions packages/worker/fileWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function getReadyQuery(storeName) {
var selector = {uploadedAt: {$exists: true}};
selector['copies.' + storeName] = null;
selector['failures.copies.' + storeName + '.doneTrying'] = {$ne: true};
selector['node_id'] = process.env.METEOR_PARENT_PID;
return selector;
}

Expand Down

0 comments on commit a12d2b1

Please sign in to comment.