Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Commit

Permalink
Keep default code_change clause
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydoane committed Jun 17, 2017
1 parent 22298a7 commit 07d6ba2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mem3_shards.erl
Expand Up @@ -249,7 +249,10 @@ code_change(1 = OldVsn, {st, MaxSize, CurSize, ChangesPid} = St, _Extra) ->
code_change({down, 2} = OldVsn, St, _Extra) ->
{st, MaxSize, CurSize, ChangesPid, _, _} = St,
twig:log(notice, "~p code_change ~p ~p", [?MODULE, OldVsn, St]),
downgrade(MaxSize, CurSize, ChangesPid).
downgrade(MaxSize, CurSize, ChangesPid);

code_change(_OldVsn, #st{} = St, _Extra) ->
{ok, St}.


upgrade(MaxSize, CurSize, ChangesPid) ->
Expand Down

0 comments on commit 07d6ba2

Please sign in to comment.