aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume_read_test.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-06-19 01:15:25 -0700
committerchrislu <chris.lu@gmail.com>2025-06-19 01:15:25 -0700
commit2f1b3d68d7f3d4b8684ee37a58938f7af399117c (patch)
treed7b4a1cddb602de3ecd2341a60bf0f067a206763 /weed/storage/volume_read_test.go
parent87927d068b02d965f3ea287488942f49f1f4d151 (diff)
downloadseaweedfs-2f1b3d68d7f3d4b8684ee37a58938f7af399117c.tar.xz
seaweedfs-2f1b3d68d7f3d4b8684ee37a58938f7af399117c.zip
pass volume version when creating a volume
Diffstat (limited to 'weed/storage/volume_read_test.go')
-rw-r--r--weed/storage/volume_read_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/volume_read_test.go b/weed/storage/volume_read_test.go
index 8bbd0058b..efedadc31 100644
--- a/weed/storage/volume_read_test.go
+++ b/weed/storage/volume_read_test.go
@@ -12,7 +12,7 @@ import (
func TestReadNeedMetaWithWritesAndUpdates(t *testing.T) {
dir := t.TempDir()
- v, err := NewVolume(dir, dir, "", 1, NeedleMapInMemory, &super_block.ReplicaPlacement{}, &needle.TTL{}, 0, 0, 0)
+ v, err := NewVolume(dir, dir, "", 1, NeedleMapInMemory, &super_block.ReplicaPlacement{}, &needle.TTL{}, 0, needle.GetCurrentVersion(), 0, 0)
if err != nil {
t.Fatalf("volume creation: %v", err)
}
@@ -51,7 +51,7 @@ func TestReadNeedMetaWithWritesAndUpdates(t *testing.T) {
func TestReadNeedMetaWithDeletesThenWrites(t *testing.T) {
dir := t.TempDir()
- v, err := NewVolume(dir, dir, "", 1, NeedleMapInMemory, &super_block.ReplicaPlacement{}, &needle.TTL{}, 0, 0, 0)
+ v, err := NewVolume(dir, dir, "", 1, NeedleMapInMemory, &super_block.ReplicaPlacement{}, &needle.TTL{}, 0, needle.GetCurrentVersion(), 0, 0)
if err != nil {
t.Fatalf("volume creation: %v", err)
}