From: Changcheng Liu Date: Wed, 18 Mar 2020 02:55:37 +0000 (+0800) Subject: librbd: fix list size X-Git-Tag: v16.1.0~2739^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a84d5056b4b8427086e922643c3c30503feb9798;p=ceph.git librbd: fix list size The pending_ops should be the full size in block_operations. Signed-off-by: Changcheng Liu --- diff --git a/src/librbd/BlockGuard.h b/src/librbd/BlockGuard.h index 4a9cac04523..a9c2fd8b395 100644 --- a/src/librbd/BlockGuard.h +++ b/src/librbd/BlockGuard.h @@ -115,8 +115,7 @@ public: << "block_end=" << detained_block_extent.block_extent.block_end << "), " << "pending_ops=" - << (detained_block_extent.block_operations.empty() ? - 0 : detained_block_extent.block_operations.size() - 1) + << detained_block_extent.block_operations.size() << dendl; *block_operations = std::move(detained_block_extent.block_operations);