Closed yhr closed 2 years ago
We don't explicitly disallow two writers to a single file, which we don't support, so we need to err out if the file is already open for writing.
Let's introduce a write mutex per zone file and try_lock this when reopening.
We should wait when re-opening a file that is being migrated. We must not migrate files that are opened for writing.
We don't explicitly disallow two writers to a single file, which we don't support, so we need to err out if the file is already open for writing.
Let's introduce a write mutex per zone file and try_lock this when reopening.
We should wait when re-opening a file that is being migrated. We must not migrate files that are opened for writing.