mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Fix FileLog engine unnesessary create meta data directory when create table failed.
fix style
This commit is contained in:
parent
2d7ff774fd
commit
0efabb39cf
@ -119,7 +119,8 @@ void StorageFileLog::loadMetaFiles(bool attach)
|
||||
"Metadata files already exist by path: {}, remove them manually if it is intended",
|
||||
root_meta_path);
|
||||
}
|
||||
std::filesystem::create_directories(root_meta_path);
|
||||
/// We do not create the root_meta_path directory at creation time, create it at the moment of serializing
|
||||
/// meta files, such that can avoid unnecessarily create this directory if create table failed.
|
||||
}
|
||||
}
|
||||
|
||||
|
3
tests/queries/0_stateless/02125_fix_storage_filelog.sql
Normal file
3
tests/queries/0_stateless/02125_fix_storage_filelog.sql
Normal file
@ -0,0 +1,3 @@
|
||||
CREATE TABLE log (A String) ENGINE= FileLog('/tmp/aaa.csv', 'CSV'); -- {serverError 36 }
|
||||
CREATE TABLE log (A String) ENGINE= FileLog('/tmp/aaa.csv', 'CSV'); -- {serverError 36 }
|
||||
CREATE TABLE log (A String) ENGINE= FileLog('/tmp/aaa.csv', 'CSV'); -- {serverError 36 }
|
Loading…
Reference in New Issue
Block a user