]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix ineffective 'false' parameter due to virtual inheritance 64702/head
authorizxl007 <zeng.zheng@zte.com.cn>
Sat, 26 Jul 2025 16:18:37 +0000 (00:18 +0800)
committerizxl007 <zeng.zheng@zte.com.cn>
Sat, 26 Jul 2025 16:18:37 +0000 (00:18 +0800)
commitce8ecd39f17126012fcb5cd3d9e094ea4994cee6
tree7f1cd4a2e3464079bb729dbe4a1965d90d370b28
parent5abc34b8658517e473864cd8f95e6009393c0d64
mds: fix ineffective 'false' parameter due to virtual inheritance

In MDCacheIOContext subclasses, the track parameter, when set to false,
is ignored due to C++ virtual inheritance. Only the most-derived class can
initialize virtual bases.

This commit ensures all subclasses adopt the default track = true,
eliminating confusion and potential errors from non-functional constructor
parameters.

Signed-off-by: izxl007 <zeng.zheng@zte.com.cn>
src/mds/MDCache.cc
src/mds/MDCache.h