Perform file sync outside of lock on Commit

Signed-off-by: Xinyang Ge <xinyang.ge@databricks.com>
This commit is contained in:
Xinyang Ge
2024-04-24 13:38:51 -07:00
parent c4c3c6ea56
commit 4167416754
3 changed files with 27 additions and 0 deletions

View File

@@ -165,6 +165,11 @@ type Writer interface {
Truncate(size int64) error
}
type Syncer interface {
// Sync flushes the in-flight writes to the disk (when applicable)
Sync() error
}
// Opt is used to alter the mutable properties of content
type Opt func(*Info) error