Skip to content

Commit 49bc8ce

Browse files
committed
Merge branch 'jh/trace2'
A few embarrassing bugfixes. * jh/trace2: trace2: fix up a missing "leave" entry point trace2: fix incorrect function pointer check
2 parents 40bef49 + c173542 commit 49bc8ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

read-cache.c

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

31373137
if (ret)

trace2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ void trace2_data_json_fl(const char *file, int line, const char *category,
734734
us_elapsed_region = tr2tls_region_elasped_self(us_now);
735735

736736
for_each_wanted_builtin (j, tgt_j)
737-
if (tgt_j->pfn_data_fl)
737+
if (tgt_j->pfn_data_json_fl)
738738
tgt_j->pfn_data_json_fl(file, line, us_elapsed_absolute,
739739
us_elapsed_region, category,
740740
repo, key, value);

0 commit comments

Comments
 (0)