Skip to content

Commit 6911058

Browse files
committed
os/bluestore/bluefs: Fix bluefs_fnode_t::seek
When offset is larger than 2^63 the function logic thought valid extent has been found. Fixed now. Fixes: https://tracker.ceph.com/issues/71532 Signed-off-by: Adam Kupczyk <[email protected]> (cherry picked from commit f6a569b)
1 parent 1978c4c commit 6911058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/bluestore/bluefs_types.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ mempool::bluefs::vector<bluefs_extent_t>::iterator bluefs_fnode_t::seek(
261261
}
262262

263263
while (p != extents.end()) {
264-
if ((int64_t) offset >= p->length) {
264+
if (offset >= p->length) {
265265
offset -= p->length;
266266
++p;
267267
} else {

0 commit comments

Comments
 (0)