]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ECExtentCache: convert LRU::Key from class to struct
authorKefu Chai <tchaikov@gmail.com>
Fri, 20 Jun 2025 07:56:26 +0000 (15:56 +0800)
committerKefu Chai <tchaikov@gmail.com>
Fri, 20 Jun 2025 10:00:49 +0000 (18:00 +0800)
commitc9da5b8464601ae2d368175c4f0d43f04371b397
tree64839a3dd2798b0e2dd9b70c1fb11824b8b29854
parent19b4468c930085573ca0078e00a08182115da1bc
osd/ECExtentCache: convert LRU::Key from class to struct

Change Key from a class with public members and constructor to a
plain struct. Since Key only holds data with no special initialization
logic, a struct with aggregate initialization is more appropriate
and simpler.

This removes the user-declared constructor and relies on the compiler's
default aggregate initialization from initializer lists.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/osd/ECExtentCache.h