Skip to content

Commit 1a119b8

Browse files
committed
wip tests
1 parent fbc6aca commit 1a119b8

File tree

3 files changed

+276
-75
lines changed

3 files changed

+276
-75
lines changed

ydb/core/tablet_flat/shared_cache_composite.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ class TCompositeCache : public ICacheCache<TPage> {
8787
};
8888

8989
public:
90-
TCompositeCache(THolder<ICacheCache<TPage>>&& cache, TCounterPtr sizeCounter) {
90+
TCompositeCache(ui64 limit, THolder<ICacheCache<TPage>>&& cache, TCounterPtr sizeCounter) {
9191
Caches.emplace_back(1, std::move(cache), sizeCounter);
92+
UpdateLimit(limit);
9293
}
9394

9495
TIntrusiveList<TPage> Switch(THolder<ICacheCache<TPage>>&& cache, TCounterPtr sizeCounter) Y_WARN_UNUSED_RESULT {
@@ -169,7 +170,7 @@ class TCompositeCache : public ICacheCache<TPage> {
169170
size_t count = 0;
170171

171172
for (const auto& cache : Caches) {
172-
if (count) result << "; " << Endl;
173+
if (count) result << "; ";
173174
result << cache.Dump();
174175
count++;
175176
}
@@ -227,7 +228,7 @@ class TCompositeCache : public ICacheCache<TPage> {
227228
}
228229

229230
private:
230-
ui64 Limit = 0;
231+
ui64 Limit;
231232
TDeque<TCacheHolder> Caches;
232233
};
233234

0 commit comments

Comments
 (0)