Permalink
Browse files

revert testing change to exception handling

  • Loading branch information...
1 parent 726e65e commit 2216802b9724bbc06854e47321ed1871bce22097 @evanmcc evanmcc committed Mar 25, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/bitcask.erl
View
@@ -940,13 +940,13 @@ init_keydir_scan_key_files(_Dirname, _Keydir, 0) ->
%% times, then we are just plain unlucky. Or QuickCheck smites us
%% from lofty Mt. Stochastic.
{error, {init_keydir_scan_key_files, too_many_iterations}};
-init_keydir_scan_key_files(Dirname, KeyDir, _Count) ->
-% try
+init_keydir_scan_key_files(Dirname, KeyDir, Count) ->
+ try
SortedFiles = readable_files(Dirname),
- _ = scan_key_files(SortedFiles, KeyDir, [], true, false).
-% catch _:_ ->
-% init_keydir_scan_key_files(Dirname, KeyDir, Count - 1)
-% end.
+ _ = scan_key_files(SortedFiles, KeyDir, [], true, false)
+ catch _:_ ->
+ init_keydir_scan_key_files(Dirname, KeyDir, Count - 1)
+ end.
get_filestate(FileId,
State=#bc_state{ dirname = Dirname, read_files = ReadFiles }) ->

0 comments on commit 2216802

Please sign in to comment.