This commit is contained in:
MikhailBurdukov 2024-05-13 14:14:35 +00:00
parent cfa0aa772e
commit e2b39db242
2 changed files with 3 additions and 3 deletions

View File

@ -371,10 +371,10 @@ void TruncateMetadataFileOperation::execute(std::unique_lock<SharedMutex> & meta
}
}
void TruncateMetadataFileOperation::undo()
void TruncateMetadataFileOperation::undo(std::unique_lock<SharedMutex> & lock)
{
if (write_operation)
write_operation->undo();
write_operation->undo(lock);
}

View File

@ -300,7 +300,7 @@ struct TruncateMetadataFileOperation final : public IMetadataOperation
void execute(std::unique_lock<SharedMutex> & metadata_lock) override;
void undo() override;
void undo(std::unique_lock<SharedMutex> & lock) override;
private:
std::string path;