Skip to content

Instantly share code, notes, and snippets.

@chewbranca
Created December 12, 2018 17:43
Show Gist options
  • Save chewbranca/055d50be1173cb016982b21aa2c3674e to your computer and use it in GitHub Desktop.
Save chewbranca/055d50be1173cb016982b21aa2c3674e to your computer and use it in GitHub Desktop.
rr(mem3_shards),
SyncShard = fun(ShardName) ->
Shards = mem_shards:for_shard_name(ShardName),
[rpc:call(S1#shard.node, mem3_sync, push, [S1, S2#shard.node]) || S1 <- Shards, S2 <- Shards, S1 =/= S2]
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment