diff options
Diffstat (limited to 'weed/storage/volume_super_block.go')
| -rw-r--r-- | weed/storage/volume_super_block.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/storage/volume_super_block.go b/weed/storage/volume_super_block.go index 164c887e1..d0f2757fa 100644 --- a/weed/storage/volume_super_block.go +++ b/weed/storage/volume_super_block.go @@ -69,6 +69,10 @@ func (s *SuperBlock) Bytes() []byte { return header } +func (s *SuperBlock) Initialized() bool { + return s.ReplicaPlacement == nil || s.Ttl == nil +} + func (v *Volume) maybeWriteSuperBlock() error { stat, e := v.dataFile.Stat() if e != nil { |
