mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #14898 from zhang2014/fix/ISSUES-14894
ISSUES-14894 fix MaterializeMySQL temp metadata file exists
This commit is contained in:
commit
a76d8fb96b
@ -145,7 +145,7 @@ void MaterializeMetadata::transaction(const MySQLReplication::Position & positio
|
||||
String persistent_tmp_path = persistent_path + ".tmp";
|
||||
|
||||
{
|
||||
WriteBufferFromFile out(persistent_tmp_path, DBMS_DEFAULT_BUFFER_SIZE, O_WRONLY | O_TRUNC | O_CREAT | O_EXCL);
|
||||
WriteBufferFromFile out(persistent_tmp_path, DBMS_DEFAULT_BUFFER_SIZE, O_WRONLY | O_TRUNC | O_CREAT);
|
||||
|
||||
/// TSV format metadata file.
|
||||
writeString("Version:\t" + toString(meta_version), out);
|
||||
|
Loading…
Reference in New Issue
Block a user