Merge pull request #680 from moqi-ai/master

fix the tool for change replication factor
This commit is contained in:
Chris Lu 2018-07-09 22:36:53 -07:00 committed by GitHub
commit 3db6182181
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)