fix the tool for change replication factor

This commit is contained in:
Qin Liu 2018-07-09 20:35:04 +08:00
parent 50d351944f
commit 940b5edcaa

View file

@ -87,7 +87,7 @@ func main() {
if hasChange { if hasChange {
header = superBlock.Bytes() header := superBlock.Bytes()
if n, e := datFile.WriteAt(header, 0); n == 0 || e != nil { if n, e := datFile.WriteAt(header, 0); n == 0 || e != nil {
glog.Fatalf("cannot write super block: %v", e) glog.Fatalf("cannot write super block: %v", e)