From 87e5a02a99965812f309d9071720e8d4eaa059cd Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 9 Oct 2019 00:07:18 -0700 Subject: [PATCH] fix logic error --- weed/storage/volume_super_block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {