]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: fix list size
authorChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 18 Mar 2020 02:55:37 +0000 (10:55 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 18 Mar 2020 14:18:39 +0000 (22:18 +0800)
The pending_ops should be the full size in block_operations.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/librbd/BlockGuard.h

index 4a9cac04523493ababe7a8266429dedf163192fc..a9c2fd8b3950020c75acd5dc7eceb035e33531c9 100644 (file)
@@ -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);