Skip to content

Commit 6d88fb5

Browse files
committed
touch once
1 parent 51db27a commit 6d88fb5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ydb/core/tablet_flat/shared_cache_switchable.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,7 @@ class TSwitchableCache : public ICacheCache<TPage> {
214214

215215
while (!rotatedList.Empty()) {
216216
TPage* page = rotatedList.PopFront();
217-
218-
// touch each page multiple times to make it warm
219-
for (ui32 touchTimes = 0; touchTimes < 3; touchTimes++) {
220-
evictedList.Append(Caches.back().Touch(page));
221-
}
222-
217+
evictedList.Append(Caches.back().Touch(page));
223218
rotatedPagesCount++;
224219
}
225220
}

0 commit comments

Comments
 (0)