Ceph C_GatherBuilder类使用简单理解
以ceph mds客户端mds_command中对C_GatherBuilder类类的具体使用为例,简单的流程概述为:C_GatherBuilder gather(cct, onfinish); 该类名为Builder,通过该类创建一个Gather(集合) 任务集合实例,通过new_sub方法为该集合实例添加子任务。当所有的子任务完成以后,返回入参的onfinsh指针的complete方法。
原创
2024-04-11 16:31:12 ·
140 阅读 ·
0 评论