Skip to content

Commit

Permalink
Track s3 i/o when S3COMMS_DEBUG enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Jun 15, 2023
1 parent 966d7e1 commit 0e83ab9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/H5FDs3comms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,10 @@ H5FD_s3comms_s3r_read(s3r_t *handle, haddr_t offset, size_t len, void *dest)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "unable to format HTTP Range value");
}

#if S3COMMS_DEBUG
HDfprintf(stderr, "%s: Bytes %ld - %ld, Request Size: %ld\n", handle->httpverb, offset, offset + len, len);
#endif

/*******************
* COMPILE REQUEST *
*******************/
Expand Down

0 comments on commit 0e83ab9

Please sign in to comment.