Skip to content

Commit

Permalink
status: disable and free fscache at the end of the status command
Browse files Browse the repository at this point in the history
At the end of the status command, disable and free the fscache so that we
don't leak the memory and so that we can dump the fscache statistics.

Signed-off-by: Ben Peart <benpeart@microsoft.com>
  • Loading branch information
benpeart authored and dscho committed Sep 22, 2022
1 parent c5c3a85 commit 31f4a14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/commit.c
Expand Up @@ -1581,6 +1581,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
wt_status_print(&s);
wt_status_collect_free_buffers(&s);

enable_fscache(0);
return 0;
}

Expand Down

0 comments on commit 31f4a14

Please sign in to comment.