Anonymous committed 3f87c11

Implement handle_exit

Since 14.0 Riak Core has added an "optional" handle_exit callback for
vnodes to implement when they want to handle EXIT signals from
processes linked to the vnode container. However, it doesn't special
case a normal exit and therefore the search vnode has to implement
this callback to handle that case.

The handle_exit callback simply ignores any exit signals by returning
noreply, this is consistent with it's behavior in 0.14.0.

Comments (0)

Files changed (1)


 -export([start_vnode/1, init/1, handle_command/3,
          handle_handoff_command/3, handle_handoff_data/2,
          handoff_starting/2, handoff_cancelled/1, handoff_finished/2,
-         is_empty/1, delete/1, terminate/2, encode_handoff_item/2]).
+         is_empty/1, delete/1, terminate/2, encode_handoff_item/2,
+         handle_exit/3]).
     ok = BMod:drop(BState),
     {ok, VState}.
+handle_exit(_Pid, _Reason, _State) ->
+    {noreply, _State}.
 terminate(_Reason, #vstate{bmod=BMod, bstate=BState}) ->
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.