Skip to content

Commit

Permalink
fix: remove an extra list operation.
Browse files Browse the repository at this point in the history
Test-tag: dfuse
Signed-off-by: Ashley Pittman <[email protected]>
  • Loading branch information
ashleypittman committed Nov 12, 2024
1 parent 221c849 commit f4956ac
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/client/dfuse/ops/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,6 @@ chunk_read(fuse_req_t req, size_t len, off_t position, struct dfuse_obj_hdl *oh)
cd->bucket = bucket;
submit = true;

d_list_add(&cd->list, &ie->ie_active->chunks);

found:

for (int i = 0; i < 8; i++) {
Expand Down Expand Up @@ -470,12 +468,7 @@ dfuse_cb_read(fuse_req_t req, fuse_ino_t ino, size_t len, off_t position, struct
if (reached_eof) {
DFUSE_TRA_DEBUG(oh, "Returning EOF early without round trip %#zx", position);
oh->doh_linear_read_eof = false;
#if 0
/* Release uses this to set the bit on the directory so do not turn it off here
* but I do need to check why it was set before.
*/
oh->doh_linear_read = false;
#endif

if (oh->doh_readahead) {
D_MUTEX_LOCK(&oh->doh_readahead->dra_lock);
Expand Down

0 comments on commit f4956ac

Please sign in to comment.