File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -745,6 +745,8 @@ static int read_object_process(const struct object_id *oid)
745
745
746
746
start = getnanotime ();
747
747
748
+ trace2_region_enter ("subprocess" , "read_object" , the_repository );
749
+
748
750
if (!subprocess_map_initialized ) {
749
751
subprocess_map_initialized = 1 ;
750
752
hashmap_init (& subprocess_map , (hashmap_cmp_fn )cmd2process_cmp ,
@@ -761,13 +763,16 @@ static int read_object_process(const struct object_id *oid)
761
763
if (subprocess_start (& subprocess_map , & entry -> subprocess , cmd ,
762
764
start_read_object_fn )) {
763
765
free (entry );
764
- return -1 ;
766
+ err = -1 ;
767
+ goto leave_region ;
765
768
}
766
769
}
767
770
process = & entry -> subprocess .process ;
768
771
769
- if (!(CAP_GET & entry -> supported_capabilities ))
770
- return -1 ;
772
+ if (!(CAP_GET & entry -> supported_capabilities )) {
773
+ err = -1 ;
774
+ goto leave_region ;
775
+ }
771
776
772
777
sigchain_push (SIGPIPE , SIG_IGN );
773
778
@@ -816,6 +821,10 @@ static int read_object_process(const struct object_id *oid)
816
821
817
822
trace_performance_since (start , "read_object_process" );
818
823
824
+ leave_region :
825
+ trace2_region_leave_printf ("subprocess" , "read_object" , the_repository ,
826
+ "result %d" , err );
827
+
819
828
return err ;
820
829
}
821
830
You can’t perform that action at this time.
0 commit comments