Skip to content

Commit

Permalink
fix embarrassing bug in prior commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lehenbauer committed May 12, 2017
1 parent de7f445 commit 548c7a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zookeeper.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ namespace eval ::zookeeper {
# but very briefly the zversion isn't.
write_file $outpath/zdata.new $zdata
write_file $outpath/zversion.new $zversion
file rename -force -- $outpath/zdata.new $outpath/$zdata
file rename -force -- $outpath/zversion.new $outpath/$zversion
file rename -force -- $outpath/zdata.new $outpath/zdata
file rename -force -- $outpath/zversion.new $outpath/zversion
} else {
# files didn't exist, we can write them without renaming
write_file $outpath/zdata $zdata
Expand Down

0 comments on commit 548c7a0

Please sign in to comment.