Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
enable write memoization on single jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
freels committed Aug 31, 2011
1 parent 673ebc6 commit 647805b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -121,7 +121,7 @@ extends JsonJob {
}

def writeToShard(shards: NodeSet[Shard], sourceId: Long, destinationId: Long, uuid: Long, state: State) = {
shards.all { (shardId, shard) =>
shards.skip(successes) all { (shardId, shard) =>
state match {
case State.Normal => shard.add(sourceId, destinationId, uuid, updatedAt)
case State.Removed => shard.remove(sourceId, destinationId, uuid, updatedAt)
Expand Down

0 comments on commit 647805b

Please sign in to comment.