Fix fsync_after_insert by not closing fd from finalize()

But this may cause troubles, another option will be to split finalize()
into finalize(bool sync) and finalizeImpl()

This was introduced in #8356
This commit is contained in:
Azat Khuzhin 2021-01-07 19:17:02 +03:00
parent 52f56cd6ad
commit 53268d9f05

View File

@ -50,11 +50,6 @@ public:
/// Close file before destruction of object.
void close();
void finalize() override
{
close();
}
std::string getFileName() const override
{
return file_name;