]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/ECExtentCache: Replace manual mutex operations with std::lock_guard
authorKefu Chai <tchaikov@gmail.com>
Fri, 20 Jun 2025 07:23:00 +0000 (15:23 +0800)
committerKefu Chai <tchaikov@gmail.com>
Fri, 20 Jun 2025 10:00:49 +0000 (18:00 +0800)
commit611dee7286611fb8a5ebfa129dc623abfcd6fc21
tree4755d633c6eb784ba6149092356d42731957a866
parent6dbabcb4c2ce5257d561c76d3187b3c3a67c346a
osd/ECExtentCache: Replace manual mutex operations with std::lock_guard

Replace manual mutex.lock() and mutex.unlock() calls with std::lock_guard
for LRU cache access serialization. This improves code safety by ensuring
automatic unlock on scope exit and reduces maintenance burden compared to
manual mutex management.

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