mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 20:32:43 +00:00
Merge pull request #73279 from ClickHouse/chesema-fix-missing-finalize
fix missing finalize call
This commit is contained in:
commit
baafcd2cc8
@ -1032,9 +1032,9 @@ void StorageKeeperMap::restoreDataImpl(
|
||||
if (!dynamic_cast<ReadBufferFromFileBase *>(in.get()))
|
||||
{
|
||||
temp_data_file.emplace(temporary_disk);
|
||||
auto out = std::make_unique<WriteBufferFromFile>(temp_data_file->getAbsolutePath());
|
||||
copyData(*in, *out);
|
||||
out.reset();
|
||||
auto out = WriteBufferFromFile(temp_data_file->getAbsolutePath());
|
||||
copyData(*in, out);
|
||||
out.finalize();
|
||||
in = createReadBufferFromFileBase(temp_data_file->getAbsolutePath(), {});
|
||||
}
|
||||
std::unique_ptr<ReadBufferFromFileBase> in_from_file{static_cast<ReadBufferFromFileBase *>(in.release())};
|
||||
|
Loading…
Reference in New Issue
Block a user