]> git.ipfire.org Git - thirdparty/git.git/commitdiff
push: region_leave trace for negotiate_using_fetch
authorSam Delmerico <delmerico@google.com>
Wed, 3 Jan 2024 22:40:54 +0000 (14:40 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Jan 2024 23:32:44 +0000 (15:32 -0800)
There were two region_enter events for negotiate_using_fetch instead of
one enter and one leave. This commit replaces the second region_enter
event with a region_leave.

Signed-off-by: Sam Delmerico <delmerico@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fetch-pack.c

index 998fc2fa1ed4abd32ad0e723115f568768134d3e..1458883df729d9eedf33a460b202d11a232623b8 100644 (file)
@@ -2207,7 +2207,7 @@ void negotiate_using_fetch(const struct oid_array *negotiation_tips,
                                           the_repository, "%d",
                                           negotiation_round);
        }
-       trace2_region_enter("fetch-pack", "negotiate_using_fetch", the_repository);
+       trace2_region_leave("fetch-pack", "negotiate_using_fetch", the_repository);
        trace2_data_intmax("negotiate_using_fetch", the_repository,
                           "total_rounds", negotiation_round);
        clear_common_flag(acked_commits);