Skip to content

Commit cc96a38

Browse files
committed
Merge PR ceph#61327 into main
* refs/pull/61327/head: client: Fix signed comparison warning Reviewed-by: John Mulligan <[email protected]> Reviewed-by: Venky Shankar <[email protected]> Reviewed-by: Patrick Donnelly <[email protected]>
2 parents f002368 + e81fbe4 commit cc96a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/Client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10990,7 +10990,7 @@ int64_t Client::_read(Fh *f, int64_t offset, uint64_t size, bufferlist *bl,
1099010990
// C_Read_Sync_NonBlocking::finish().
1099110991

1099210992
// trim read based on file size?
10993-
if ((offset >= in->size) || (size == 0)) {
10993+
if (std::cmp_greater_equal(offset, in->size) || (size == 0)) {
1099410994
// read is requested at the EOF or the read len is zero, therefore just
1099510995
// release managed pointers and complete the C_Read_Finisher immediately with 0 bytes
1099610996

0 commit comments

Comments
 (0)