mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
Revert "osdc: Fix compiler warning"
This reverts commit cb290a117a
.
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
a1f23b7a95
commit
c2cebe5b6d
@ -166,10 +166,8 @@ class ObjectCacher {
|
||||
|
||||
//! Returns the size of the overlap between the BufferHead's range and the given range.
|
||||
uint64_t overlap_size(uint64_t start, uint64_t end) {
|
||||
assert(ex.start >= 0);
|
||||
assert(ex.length >= 0);
|
||||
uint64_t overlap_start = MAX(start, (uint64_t)ex.start);
|
||||
uint64_t overlap_end = MIN(end, (uint64_t)(ex.start + ex.length));
|
||||
uint64_t overlap_start = MAX(start, ex.start);
|
||||
uint64_t overlap_end = MIN(end, ex.start + ex.length);
|
||||
return overlap_end - overlap_start;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user