We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c572aa2 commit fb8e23cCopy full SHA for fb8e23c
cachelib/allocator/CacheAllocator-inl.h
@@ -2639,6 +2639,7 @@ bool CacheAllocator<CacheTrait>::moveForSlabRelease(
2639
const auto allocInfo = allocator_->getAllocInfo(oldItem.getMemory());
2640
if (chainedItem) {
2641
newItemHdl.reset();
2642
+ auto parentKey = parentItem->getKey();
2643
auto ref = parentItem->unmarkMoving();
2644
if (UNLIKELY(ref == 0)) {
2645
wakeUpWaiters(*parentItem, {});
@@ -2648,7 +2649,7 @@ bool CacheAllocator<CacheTrait>::moveForSlabRelease(
2648
2649
return true;
2650
} else {
2651
XDCHECK_NE(ref, 0);
- auto parentHdl = acquire(parentItem);
2652
+ auto parentHdl = findInternal(parentKey);
2653
if (parentHdl) {
2654
wakeUpWaiters(*parentItem, std::move(parentHdl));
2655
}
0 commit comments