Skip to content

Commit 9bb4db8

Browse files
committed
remove extra whitespace
1 parent 9a7a468 commit 9bb4db8

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

cachelib/allocator/CacheAllocator-inl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ CacheAllocator<CacheTrait>::allocateInternalTier(TierId tid,
439439
if (backgroundEvictor_.size() && !fromBgThread && (memory == nullptr || shouldWakeupBgEvictor(tid, pid, cid))) {
440440
backgroundEvictor_[backgroundWorkerId(tid, pid, cid, backgroundEvictor_.size())]->wakeUp();
441441
}
442-
442+
443443
if (memory == nullptr) {
444444
memory = findEviction(tid, pid, cid);
445445
}
@@ -1590,13 +1590,13 @@ CacheAllocator<CacheTrait>::findEviction(TierId tid, PoolId pid, ClassId cid) {
15901590
} else {
15911591
(*stats_.regularItemEvictions)[pid][cid].inc();
15921592
}
1593-
1593+
15941594
if (auto eventTracker = getEventTracker()) {
15951595
eventTracker->record(AllocatorApiEvent::DRAM_EVICT, candidate->getKey(),
15961596
AllocatorApiResult::EVICTED, candidate->getSize(),
15971597
candidate->getConfiguredTTL().count());
15981598
}
1599-
1599+
16001600
if (ReleaseRes::kRecycled ==
16011601
releaseBackToAllocator(*candidate, RemoveContext::kEviction,
16021602
/* isNascent */ false, toRecycle)) {

cachelib/allocator/CacheAllocator.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,10 +1987,9 @@ class CacheAllocator : public CacheBase {
19871987
for (Item *candidate : candidates) {
19881988
{
19891989
auto toReleaseHandle =
1990-
evictNormalItem(*candidate,
1991-
true /* skipIfTokenInvalid */,
1992-
true /* from BG thread */);
1993-
// destroy toReleseHandle. The item won't be release to allocator
1990+
evictNormalItem(*candidate,
1991+
true /* skipIfTokenInvalid */, true /* from BG thread */);
1992+
// destroy toReleseHandle. The item won't be release to allocator
19941993
// since we marked it as exclusive.
19951994
}
19961995
auto ref = candidate->unmarkExclusive();

0 commit comments

Comments
 (0)