Perform file sync outside of lock on Commit
Signed-off-by: Xinyang Ge <xinyang.ge@databricks.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user