Skip to content

Commit

Permalink
Add comment about handle_call.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeiklejohn committed Jan 2, 2014
1 parent 156a8e3 commit a18464f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/riak_repl2_fs_node_reserver.erl
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ handle_call({reserve, Partition}, _From, State) ->
end;

%% @hidden
%% This message is a call to prevent unreserve/reserve races, as well as
%% detect failed processes.
handle_call({unreserve, Partition}, _From, State) ->
Reserved2 = cancel_reservation_timeout(Partition, State#state.reservations),
{reply, ok, State#state{reservations = Reserved2}};
Expand Down

0 comments on commit a18464f

Please sign in to comment.