Skip to content

Commit

Permalink
Restrict regex for finding bitcask files to starting with numbers.
Browse files Browse the repository at this point in the history
Thanks for the review Scott and Dan.
  • Loading branch information
Jon Meredith committed Feb 9, 2012
1 parent c8dbd61 commit f6cef5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitcask_fileops.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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]+.bitcask.data$", false,
filelib:fold_files(Dirname, "^[0-9]+.bitcask.data$", false,
fun(F, Acc) ->
[{file_tstamp(F), F} | Acc]
end, []).
Expand Down

0 comments on commit f6cef5d

Please sign in to comment.