Browse Source
Merge pull request #680 from moqi-ai/master
fix the tool for change replication factor
pull/686/head
Chris Lu
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
unmaintained/change_superblock/change_superblock.go
|
@ -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) |
|
|