Skip to content

Commit 0a9e35d

Browse files
committed
rabbit_db: Assert the return value of reset() in join()
1 parent 7c3706a commit 0a9e35d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/rabbit_db_cluster.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ join(RemoteNode, NodeType)
7878
when is_atom(RemoteNode) andalso ?IS_NODE_TYPE(NodeType) ->
7979
case can_join(RemoteNode) of
8080
{ok, ClusterNodes} when is_list(ClusterNodes) ->
81-
rabbit_db:reset(),
81+
ok = rabbit_db:reset(),
8282

8383
?LOG_INFO(
8484
"DB: joining cluster using remote nodes:~n~tp", [ClusterNodes],

0 commit comments

Comments
 (0)