From 44497f6e79d552a975d246d84d3e0063185cdfdb Mon Sep 17 00:00:00 2001 From: Ashley Pittman Date: Fri, 26 Apr 2024 10:13:33 +0000 Subject: [PATCH] Fix an issue with position. Signed-off-by: Ashley Pittman --- src/client/dfuse/ops/read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/dfuse/ops/read.c b/src/client/dfuse/ops/read.c index 9e8ce659ead..ec871bfc771 100644 --- a/src/client/dfuse/ops/read.c +++ b/src/client/dfuse/ops/read.c @@ -314,7 +314,7 @@ chunk_read(fuse_req_t req, size_t len, off_t position, struct dfuse_obj_hdl *oh) bool submit = false; bool rcb = false; - last = position = (position + (K128 - 1)) & -K128; + last = position + ((position + (K128 - 1)) & -K128); if (len != K128) return false;