Skip to content

Commit

Permalink
delete_reg: don't vacuum or checkpoint
Browse files Browse the repository at this point in the history
This gets run every time a trace thread is destroyed, which can be once
per target. (That could probably be more efficient, but nonetheless it
can be expected to happen multiple times in one port(1) command.)
Well-behaved API clients will call mportshutdown just before exiting,
which will cause these things to happen once as intended.
  • Loading branch information
jmroot committed Oct 4, 2024
1 parent b8e9820 commit 804340d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/registry2.0/registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,6 @@ static void delete_reg(ClientData reg, Tcl_Interp* interp) {
fprintf(stderr, "reg_optimize: %s\n", error.description);
reg_error_destruct(&error);
}
if (Tcl_GetAssocData(interp, "registry::needs_vacuum", NULL) != NULL) {
reg_vacuum(Tcl_GetAssocData(interp, "registry::db_path", NULL));
Tcl_DeleteAssocData(interp, "registry::needs_vacuum");
}
if (reg_checkpoint((reg_registry*)reg, &error) == 0) {
fprintf(stderr, "reg_checkpoint: %s\n", error.description);
reg_error_destruct(&error);
}
if (!registry_tcl_detach(interp, (reg_registry*)reg, &error)) {
fprintf(stderr, "registry_tcl_detach: %s", error.description);
reg_error_destruct(&error);
Expand Down

0 comments on commit 804340d

Please sign in to comment.