Merge pull request #14898 from zhang2014/fix/ISSUES-14894

ISSUES-14894 fix MaterializeMySQL temp metadata file exists
This commit is contained in:
tavplubix 2020-09-17 19:18:10 +03:00 committed by GitHub
commit a76d8fb96b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);