Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Tighten bitcask data file regex (currently picks up*)

Make sure the regex is tight so that if people move bitcask files
out of the way during recovery e.g. then they
are not included when deciding on the next filename.
  • Loading branch information...
commit c8dbd61bdfe5e8cd8bdfb15a4255c4e8e905f524 1 parent bef7143
@jonmeredith jonmeredith authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/bitcask_fileops.erl
2  src/bitcask_fileops.erl
@@ -114,7 +114,7 @@ close_for_writing(State =
%% match our regex.
-spec data_file_tstamps(Dirname :: string()) -> [{integer(), string()}].
data_file_tstamps(Dirname) ->
- filelib:fold_files(Dirname, "[0-9]", false,
+ filelib:fold_files(Dirname, "[0-9]$", false,
fun(F, Acc) ->
[{file_tstamp(F), F} | Acc]
end, []).
Please sign in to comment.
Something went wrong with that request. Please try again.