git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] push: region_leave trace for negotiate_using_fetch
@ 2024-01-03 22:40 Sam Delmerico
  2024-01-03 23:37 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Delmerico @ 2024-01-03 22:40 UTC (permalink / raw)
  To: git; +Cc: steadmon, Sam Delmerico

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>
---
 fetch-pack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fetch-pack.c b/fetch-pack.c
index 31a72d43de..dba6d79944 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -2218,7 +2218,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);

base-commit: a26002b62827b89a19b1084bd75d9371d565d03c
-- 
2.43.0.472.g3155946c3a-goog


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-05 16:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-03 22:40 [PATCH] push: region_leave trace for negotiate_using_fetch Sam Delmerico
2024-01-03 23:37 ` Junio C Hamano
2024-01-05  1:12   ` Sam Delmerico
2024-01-05 16:18     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).