diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-10-09 00:07:18 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-10-09 00:07:18 -0700 |
| commit | 87e5a02a99965812f309d9071720e8d4eaa059cd (patch) | |
| tree | 448845b68a8ffa2715c5eeeeda8b0aae635a4988 /weed/storage/volume_super_block.go | |
| parent | 939e4b57a85c56a598fcdf342e2b5d5c9085e552 (diff) | |
| download | seaweedfs-87e5a02a99965812f309d9071720e8d4eaa059cd.tar.xz seaweedfs-87e5a02a99965812f309d9071720e8d4eaa059cd.zip | |
fix logic error
Diffstat (limited to 'weed/storage/volume_super_block.go')
| -rw-r--r-- | weed/storage/volume_super_block.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/volume_super_block.go b/weed/storage/volume_super_block.go index d0f2757fa..47cddaba4 100644 --- a/weed/storage/volume_super_block.go +++ b/weed/storage/volume_super_block.go @@ -70,7 +70,7 @@ func (s *SuperBlock) Bytes() []byte { } func (s *SuperBlock) Initialized() bool { - return s.ReplicaPlacement == nil || s.Ttl == nil + return s.ReplicaPlacement != nil && s.Ttl != nil } func (v *Volume) maybeWriteSuperBlock() error { |
