mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-26 15:00:48 +01:00
fix logic error
This commit is contained in:
1 parent
939e4b57a8
commit
87e5a02a99
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user