Skip to content

Commit

Permalink
Merge pull request #406 from rabbitmq/aten-0.6
Browse files Browse the repository at this point in the history
Aten 0.6.0
  • Loading branch information
kjnilsson authored Jan 3, 2024
2 parents 5632d51 + 4e6ec70 commit 85ade09
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ erlang_package = use_extension(

erlang_package.hex_package(
name = "aten",
version = "0.5.8",
sha256 = "64d40a8cf0ddfea4e13af00b7327f0925147f83612d0627d9506cbffe90c13ef",
version = "0.6.0",
sha256 = "5f39a164206ae3f211ef5880b1f7819415686436e3229d30b6a058564fbaa168",
)

erlang_package.hex_package(
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ESCRIPT_NAME = ra_fifo_cli
ESCRIPT_EMU_ARGS = -noinput -setcookie ra_fifo_cli

dep_gen_batch_server = hex 0.8.8
dep_aten = hex 0.5.8
dep_aten = hex 0.6.0
dep_seshat = hex 0.6.0
DEPS = aten gen_batch_server seshat

Expand Down
9 changes: 7 additions & 2 deletions src/ra_server_proc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ follower_leader_change(Old, #state{pending_commands = Pending,
LeaderNode = ra_lib:ra_server_id_node(NewLeader),
ok = aten_register(LeaderNode),
OldLeaderNode = ra_lib:ra_server_id_node(OldLeader),
ok = aten:unregister(OldLeaderNode),
_ = aten:unregister(OldLeaderNode),
ok = record_leader_change(NewLeader, New),
% leader has either changed or just been set
?INFO("~ts: detected a new leader ~w in term ~b",
Expand All @@ -1502,7 +1502,12 @@ aten_register(Node) ->
case node() of
Node -> ok;
_ ->
aten:register(Node)
case aten:register(Node) of
ignore ->
ok;
Res ->
Res
end
end.

swap_monitor(MRef, L) ->
Expand Down

0 comments on commit 85ade09

Please sign in to comment.