File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ void aws_s3_request_setup_send_data(struct aws_s3_request *request, struct aws_h
9090 /* If this is not the first time request is prepared, e.g. this is a retry,
9191 * send out previous metrics and reinitialize metrics structure.
9292 */
93- int64_t first_attempt_start_timestamp_ns = -1 ;
9493
9594 if (request -> num_times_prepared > 0 && request -> send_data .metrics != NULL ) {
9695 /* If there is a metrics from previous attempt, complete it now. */
@@ -110,6 +109,8 @@ void aws_s3_request_setup_send_data(struct aws_s3_request *request, struct aws_h
110109 aws_s3_meta_request_unlock_synced_data (meta_request );
111110 }
112111
112+ int64_t first_attempt_start_timestamp_ns = -1 ;
113+
113114 /* retain the first attempt timestamp since we should not re-initialize it. */
114115 first_attempt_start_timestamp_ns = metric -> time_metrics .s3_request_first_attempt_start_timestamp_ns ;
115116
@@ -130,7 +131,7 @@ void aws_s3_request_setup_send_data(struct aws_s3_request *request, struct aws_h
130131 aws_high_res_clock_get_ticks ((uint64_t * )& request -> send_data .metrics -> time_metrics .start_timestamp_ns );
131132
132133 /* Set s3 request start timestamp if first attempt*/
133- if (first_attempt_start_timestamp_ns == -1 ) {
134+ if (request -> send_data . metrics -> time_metrics . s3_request_first_attempt_start_timestamp_ns == -1 ) {
134135 request -> send_data .metrics -> time_metrics .s3_request_first_attempt_start_timestamp_ns =
135136 request -> send_data .metrics -> time_metrics .start_timestamp_ns ;
136137 }
You can’t perform that action at this time.
0 commit comments