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 42fee7a388 ("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 <avarab@gmail.com> Acked-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
May 10, 2019 at 15:37 UTC
7fef4e3e78bfd103282452b8714b359c8a9ab3bb
1 file changed
+1
-1
read-cache.c
+1
-1
@@ -3127,7 +3127,7 @@ static int write_shared_index(struct index_state *istate,
3127
trace2_region_enter_printf("index", "shared/do_write_index",
3128
the_repository, "%s", (*temp)->filename.buf);
3129
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",
3131
the_repository, "%s", (*temp)->filename.buf);
3132
3133
if (ret)