Skip to content

Commit 9d9c734

Browse files
committed
librbd/migration/QCOWFormat: rename handle_read_cluster()
... to handle_read_clusters() as it's a callback for read_clusters(). Signed-off-by: Ilya Dryomov <[email protected]>
1 parent 5e4bcdc commit 9d9c734

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librbd/migration/QCOWFormat.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ class QCOWFormat<I>::ReadRequest {
636636
[this, cct=qcow_format->m_image_ctx->cct,
637637
image_offset=cluster_extent.image_offset,
638638
image_length=cluster_extent.cluster_length, ctx=read_ctx](int r) {
639-
handle_read_cluster(cct, r, image_offset, image_length, ctx);
639+
handle_read_clusters(cct, r, image_offset, image_length, ctx);
640640
});
641641

642642
if (cluster_extent.cluster_offset == 0) {
@@ -657,8 +657,8 @@ class QCOWFormat<I>::ReadRequest {
657657
delete this;
658658
}
659659

660-
void handle_read_cluster(CephContext* cct, int r, uint64_t image_offset,
661-
uint64_t image_length, Context* on_finish) const {
660+
void handle_read_clusters(CephContext* cct, int r, uint64_t image_offset,
661+
uint64_t image_length, Context* on_finish) const {
662662
// NOTE: treat as static function, expect object has been deleted
663663

664664
ldout(cct, 20) << "r=" << r << ", "

0 commit comments

Comments
 (0)