Skip to content

Commit

Permalink
fix etcdctl snapshot status accidentally modified the db file
Browse files Browse the repository at this point in the history
  • Loading branch information
zhesi.huang committed Nov 3, 2017
1 parent ef475b2 commit cfc2703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etcdctl/ctlv3/command/snapshot_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func dbStatus(p string) dbstatus {

ds := dbstatus{}

db, err := bolt.Open(p, 0400, nil)
db, err := bolt.Open(p, 0400, bolt.Options{NoFreelistSync: true})
if err != nil {
ExitWithError(ExitError, err)
}
Expand Down

0 comments on commit cfc2703

Please sign in to comment.