aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/storage/volume.go')
-rw-r--r--weed/storage/volume.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go
index a58a74340..3b03b7c83 100644
--- a/weed/storage/volume.go
+++ b/weed/storage/volume.go
@@ -29,6 +29,7 @@ type Volume struct {
}
func NewVolume(dirname string, collection string, id VolumeId, needleMapKind NeedleMapType, replicaPlacement *ReplicaPlacement, ttl *TTL, preallocate int64) (v *Volume, e error) {
+ // if replicaPlacement is nil, the superblock will be loaded from disk
v = &Volume{dir: dirname, Collection: collection, Id: id}
v.SuperBlock = SuperBlock{ReplicaPlacement: replicaPlacement, Ttl: ttl}
v.needleMapKind = needleMapKind