Skip to content

Commit

Permalink
Skip hse_fini when not closing kvdb (#157)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Ramdasi <10132364+gsramdasi@users.noreply.github.com>
  • Loading branch information
gsramdasi authored Dec 14, 2021
1 parent b96a151 commit 7f50744
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/putbin/putbin.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,10 @@ main(int argc, char **argv)
free(info[c].key);
free(info);

hse_fini();
/* Call hse_fini only if the kvdb was closed.
*/
if (!opt_sync)
hse_fini();

pg_destroy(pg);
svec_reset(&hse_gparm);
Expand Down

0 comments on commit 7f50744

Please sign in to comment.