This commit is contained in:
Nikita Vasilev 2020-05-23 23:50:49 +03:00
parent 3fb0eab116
commit 7358410a84
3 changed files with 4 additions and 14 deletions

View File

@ -716,6 +716,8 @@ void SSDCachePartition::clearOldestBlocks()
"aio_nbytes=" + std::to_string(request.aio_nbytes) +
", returned=" + std::to_string(event.res) + ".", ErrorCodes::AIO_READ_ERROR);
}
__msan_unpoison(read_buffer_memory.data(), read_buffer_memory.size());
}
std::vector<UInt64> keys;

View File

@ -747,6 +747,8 @@ void SSDComplexKeyCachePartition::clearOldestBlocks()
"aio_nbytes=" + std::to_string(request.aio_nbytes) +
", returned=" + std::to_string(event.res) + ".", ErrorCodes::AIO_READ_ERROR);
}
__msan_unpoison(read_buffer_memory.data(), read_buffer_memory.size());
}
TemporalComplexKeysPool tmp_keys_pool;
@ -891,11 +893,6 @@ size_t SSDComplexKeyCachePartition::getBytesAllocated() const
(keys_buffer_pool ? keys_buffer_pool->size() : 0) + (memory ? memory->size() : 0);
}
PaddedPODArray<KeyRef> SSDComplexKeyCachePartition::getCachedIds(const std::chrono::system_clock::time_point /* now */) const
{
throw DB::Exception("Method not supported.", ErrorCodes::NOT_IMPLEMENTED);
}
void SSDComplexKeyCachePartition::remove()
{
std::unique_lock lock(rw_lock);
@ -1267,11 +1264,6 @@ void SSDComplexKeyCacheStorage::update(
ProfileEvents::increment(ProfileEvents::DictCacheRequests);
}
PaddedPODArray<KeyRef> SSDComplexKeyCacheStorage::getCachedIds() const
{
throw DB::Exception("Method not supported.", ErrorCodes::NOT_IMPLEMENTED);
}
double SSDComplexKeyCacheStorage::getLoadFactor() const
{
double result = 0;

View File

@ -360,8 +360,6 @@ public:
size_t getId() const;
PaddedPODArray<KeyRef> getCachedIds(const std::chrono::system_clock::time_point now) const;
double getLoadFactor() const;
size_t getElementCount() const;
@ -461,8 +459,6 @@ public:
PresentIdHandler && on_updated, AbsentIdHandler && on_key_not_found,
const DictionaryLifetime lifetime);
PaddedPODArray<KeyRef> getCachedIds() const;
std::exception_ptr getLastException() const { return last_update_exception; }
const std::string & getPath() const { return path; }