Skip to content

Commit 57c035c

Browse files
committed
better variable names in substitute_splits
1 parent 3bca2a9 commit 57c035c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/fabric/src/fabric_drop_seq.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,20 +371,20 @@ latest_shard_sync_checkpoints(ShardSyncHistory) ->
371371
-spec substitute_splits([#shard{}], uuid_map(), peer_checkpoints()) -> peer_checkpoints().
372372
substitute_splits(Shards, UuidMap, PeerCheckpoints) ->
373373
maps:fold(
374-
fun({[B1, E1], Node}, {Uuid, Seq}, Acc) ->
374+
fun({[PS, PE], Node}, {Uuid, Seq}, Acc) ->
375375
ShardsInRange = [
376376
S
377-
|| #shard{range = [B2, E2]} = S <- Shards,
377+
|| #shard{range = [SS, SE]} = S <- Shards,
378378
Node == S#shard.node,
379-
B2 >= B1 andalso E2 =< E1
379+
SS >= PS andalso SE =< PE
380380
],
381381
%% lookup uuid from map if substituted
382382
AsMap = maps:from_list(
383383
lists:filtermap(
384384
fun(#shard{} = Shard) ->
385385
Key = {Shard#shard.range, Shard#shard.node},
386386
if
387-
[B1, E1] == Shard#shard.range ->
387+
[PS, PE] == Shard#shard.range ->
388388
{true, {Key, {Uuid, Seq}}};
389389
true ->
390390
case maps:find(Key, UuidMap) of

0 commit comments

Comments
 (0)