The commit
154b86743b52 reverted part of the fix seen in
2b74598afc.
This commit will reapply any missing changes of the fix.
Fixes: https://tracker.ceph.com/issues/73416
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
// C_Read_Sync_NonBlocking::finish().
// trim read based on file size?
- if (std::cmp_greater_equal(offset, in->effective_size()) || (size == 0)) {
+ if (size == 0) {
// zero byte read requested -- therefore just release managed
// pointers and complete the C_Read_Finisher immediately with 0 bytes
Context *iof = iofinish.release();