Permalink
Browse files

Merge pull request #8 from eriksoe/master

sherk_ets:f2t/3 not tail recursive
  • Loading branch information...
2 parents 9042ff8 + 3a21404 commit 54690a116ba9888d62cc7400d988db2d0d8cc45b @massemanet committed Oct 14, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/sherk_ets.erl
View
@@ -121,9 +121,8 @@ get_tab_header(FD) ->
f2t(FD,Tab,N) ->
- try
- ets:insert(Tab,f2t_f(FD)),
- f2t(FD,Tab,N+1)
+ try ets:insert(Tab,f2t_f(FD)) of
+ _ -> f2t(FD,Tab,N+1)
catch
throw:delimiter -> N;
throw:eof -> exit({unexpected_eof})

0 comments on commit 54690a1

Please sign in to comment.