Skip to content

Commit

Permalink
Stop mdbm_bench on create if user specifies create but no-load.
Browse files Browse the repository at this point in the history
  • Loading branch information
timrc-git committed Jul 15, 2014
1 parent b6fc1af commit e678912
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tools/mdbm_bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ Options:\n\
-a <bytes> Set record alignment (default is byte alignment)\n\
-B <optstring> Enable backing store\n\
direct Use O_DIRECT when accessing backing-store files\n\
file=<path> Enable file-based backing store at <path>\n\
file=<path> Enable file-based backing store at <path> (DEPRECATED)\n\
lock Use mdbm normal (db) locking\n\
mdbm=<dbfile> Enable mdbm-based backing store at <dbfile>\n\
nolock Use no mdbm locking\n\
Expand Down Expand Up @@ -1564,6 +1564,10 @@ main (int argc, char** argv)
}

db = populate_db(reopen, find_size, gkeys);
if (create && !load) {
printf("Asked for create but not load... exiting.\n");
exit(0);
}
create = 0;

setbuf(outfile,NULL);
Expand Down

0 comments on commit e678912

Please sign in to comment.