]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: refactor merge() for SparseBufferlistExtent 55579/head
authorIlya Dryomov <idryomov@gmail.com>
Mon, 12 Feb 2024 12:07:22 +0000 (13:07 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 14 Feb 2024 13:15:04 +0000 (14:15 +0100)
commit69c18cfd291e63fbcd261d3cf20be8dfa0c7488d
tree801407bd2c2b6529c76fd8430ca47d674a688ecd
parent746cb28449903ceec2fe3ffcfa5e925eb78eb7b2
librbd: refactor merge() for SparseBufferlistExtent

- pass left.length + right.length instead of bl.length()
  for consistency and to avoid circumventing the assert in
  SparseBufferlistExtent constructor
- claim_append() takes an lvalue reference, no need to move
- follow the pattern used in split()

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/io/Types.h
src/test/librbd/io/test_mock_ObjectRequest.cc