![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [go.etcd.io/bbolt](https://github.com/etcd-io/bbolt) from 1.3.7 to 1.3.8. - [Release notes](https://github.com/etcd-io/bbolt/releases) - [Commits](https://github.com/etcd-io/bbolt/compare/v1.3.7...v1.3.8) --- updated-dependencies: - dependency-name: go.etcd.io/bbolt dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
17 lines
241 B
Go
17 lines
241 B
Go
package bbolt
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func msync(db *DB) error {
|
|
return unix.Msync(db.data[:db.datasz], unix.MS_INVALIDATE)
|
|
}
|
|
|
|
func fdatasync(db *DB) error {
|
|
if db.data != nil {
|
|
return msync(db)
|
|
}
|
|
return db.file.Sync()
|
|
}
|