mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #11631 from jingyih/automated-cherry-pick-of-#11630-upstream-release-3.4
Automated cherry pick of #11630 to release-3.4
This commit is contained in:
commit
c10168f718
@ -376,7 +376,10 @@ func (b *backend) defrag() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
options := *boltOpenOptions
|
||||
options := bolt.Options{}
|
||||
if boltOpenOptions != nil {
|
||||
options = *boltOpenOptions
|
||||
}
|
||||
options.OpenFile = func(path string, i int, mode os.FileMode) (file *os.File, err error) {
|
||||
return temp, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user