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