mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #64502 from rschu1ze/nsync-bye-bye-bye
Sync some code back from internal to public repository
This commit is contained in:
commit
4bafca4dc6
@ -274,6 +274,11 @@ bool CachedOnDiskReadBufferFromFile::canStartFromCache(size_t current_offset, co
|
||||
return current_write_offset > current_offset;
|
||||
}
|
||||
|
||||
String CachedOnDiskReadBufferFromFile::toString(ReadType type)
|
||||
{
|
||||
return String(magic_enum::enum_name(type));
|
||||
}
|
||||
|
||||
CachedOnDiskReadBufferFromFile::ImplementationBufferPtr
|
||||
CachedOnDiskReadBufferFromFile::getReadBufferForFileSegment(FileSegment & file_segment)
|
||||
{
|
||||
|
@ -129,19 +129,7 @@ private:
|
||||
|
||||
ReadType read_type = ReadType::REMOTE_FS_READ_BYPASS_CACHE;
|
||||
|
||||
static String toString(ReadType type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case ReadType::CACHED:
|
||||
return "CACHED";
|
||||
case ReadType::REMOTE_FS_READ_BYPASS_CACHE:
|
||||
return "REMOTE_FS_READ_BYPASS_CACHE";
|
||||
case ReadType::REMOTE_FS_READ_AND_PUT_IN_CACHE:
|
||||
return "REMOTE_FS_READ_AND_PUT_IN_CACHE";
|
||||
}
|
||||
UNREACHABLE();
|
||||
}
|
||||
static String toString(ReadType type);
|
||||
|
||||
size_t first_offset = 0;
|
||||
String nextimpl_step_log_info;
|
||||
|
@ -15,18 +15,7 @@ namespace DB
|
||||
|
||||
static String typeToString(FilesystemCacheLogElement::CacheType type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case FilesystemCacheLogElement::CacheType::READ_FROM_CACHE:
|
||||
return "READ_FROM_CACHE";
|
||||
case FilesystemCacheLogElement::CacheType::READ_FROM_FS_AND_DOWNLOADED_TO_CACHE:
|
||||
return "READ_FROM_FS_AND_DOWNLOADED_TO_CACHE";
|
||||
case FilesystemCacheLogElement::CacheType::READ_FROM_FS_BYPASSING_CACHE:
|
||||
return "READ_FROM_FS_BYPASSING_CACHE";
|
||||
case FilesystemCacheLogElement::CacheType::WRITE_THROUGH_CACHE:
|
||||
return "WRITE_THROUGH_CACHE";
|
||||
}
|
||||
UNREACHABLE();
|
||||
return String(magic_enum::enum_name(type));
|
||||
}
|
||||
|
||||
ColumnsDescription FilesystemCacheLogElement::getColumnsDescription()
|
||||
|
Loading…
Reference in New Issue
Block a user