Skip to content

Commit

Permalink
Quick and dirty fix for boundary/folsom#30
Browse files Browse the repository at this point in the history
A history will survive a process crash without incident since
it is owned by folsom_sup.  This will leave the rest of the folsom
ets tables in a consistent state (all are owned by folsom_sup).
  • Loading branch information
Garret Smith committed Nov 18, 2015
1 parent 86e3e85 commit 4cf77d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/folsom_metrics_history.erl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
new(Name) ->
Tid = ets:new(history, ?ETSOPTS),
ets:insert(?HISTORY_TABLE, {Name, #history{tid=Tid}}),
ets:give_away(Tid, whereis(folsom_sup), none),
ok.

update(Name, Size, Value) ->
Expand Down

0 comments on commit 4cf77d0

Please sign in to comment.