Skip to content

Commit 7fef4e3

Browse files
avargitster
authored andcommitted
trace2: fix up a missing "leave" entry point
Fix a trivial bug that's been here since the shared/do_write_index tracing was added in 42fee7a ("trace2:data: add trace2 instrumentation to index read/write", 2019-02-22). We should have enter/leave points, not two enter/enter points. This resulted in an "enter" event without a corresponding "leave" event. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Acked-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 42fee7a commit 7fef4e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

read-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3127,7 +3127,7 @@ static int write_shared_index(struct index_state *istate,
31273127
trace2_region_enter_printf("index", "shared/do_write_index",
31283128
the_repository, "%s", (*temp)->filename.buf);
31293129
ret = do_write_index(si->base, *temp, 1);
3130-
trace2_region_enter_printf("index", "shared/do_write_index",
3130+
trace2_region_leave_printf("index", "shared/do_write_index",
31313131
the_repository, "%s", (*temp)->filename.buf);
31323132

31333133
if (ret)

0 commit comments

Comments
 (0)