summaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2019-05-10 15:37:38 +0200
committerJunio C Hamano <gitster@pobox.com>2019-05-10 23:14:09 +0900
commitc173542c84cdf5e71b393e91f9d9664a85f995b2 (patch)
tree25957231b39cdc177a95ac745aa3eb5b49077965 /read-cache.c
parent22a7338318e3709b578d5c041af0afaf95b8fe21 (diff)
downloadgit-c173542c84cdf5e71b393e91f9d9664a85f995b2.tar.gz
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>
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index eee8351d8e..49329a1fb1 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -3127,7 +3127,7 @@ static int write_shared_index(struct index_state *istate,
trace2_region_enter_printf("index", "shared/do_write_index",
the_repository, "%s", (*temp)->filename.buf);
ret = do_write_index(si->base, *temp, 1);
- trace2_region_enter_printf("index", "shared/do_write_index",
+ trace2_region_leave_printf("index", "shared/do_write_index",
the_repository, "%s", (*temp)->filename.buf);
if (ret)