Browse Source

fix logic error

pull/1084/head
Chris Lu 5 years ago
parent
commit
87e5a02a99
  1. 2
      weed/storage/volume_super_block.go

2
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 {

Loading…
Cancel
Save