Last active
December 25, 2015 19:19
-
-
Save bsparrow435/7026911 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(repair). | |
-compile(export_all). | |
main([Dir]) -> | |
Opts = [{max_open_files, 2000}, | |
{use_bloomfilter, true}, | |
{write_buffer_size, 45 * 1024 * 1024}, | |
{compression,false}], | |
{Time,_} = timer:tc(eleveldb,repair,[Dir, Opts]), | |
io:format("Done took ~p seconds~n", [Time / 1000000]); | |
main(_) -> | |
usage(). | |
usage() -> | |
io:format("usage: repair PATH_TO_PARTITION \n"), | |
halt(1). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example usage: