1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-07 01:27:01 +02:00

fix logic error

This commit is contained in:
Chris Lu 2019-10-09 00:07:18 -07:00
parent 939e4b57a8
commit 87e5a02a99

View file

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