Originally primary Hybrid allocator provided its own name when creating a
secondary fallback allocator. This resulted in duplicate admin socket
command registrations for both allocator. Registration return code was
ignored and henoe nobody was aware of the issue. Nautilus might suffer
from the issue though since it asserts on command deregistration failure.
And duplicate name causes such a failure for the secode
unregister_command() call.
Fixes: https://tracker.ceph.com/issues/47443
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit
b0866b60461b06e6563cad47d0ad3ce9302114f5)
bmap_alloc = new BitmapAllocator(cct,
get_capacity(),
get_block_size(),
- get_name());
+ get_name() + ".fallback");
}
bmap_alloc->init_add_free(start, size);
}