diff options
Diffstat (limited to 'weed/storage/needle/compact_map_test.go')
| -rw-r--r-- | weed/storage/needle/compact_map_test.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/weed/storage/needle/compact_map_test.go b/weed/storage/needle/compact_map_test.go index 1320e81ba..8ed851b95 100644 --- a/weed/storage/needle/compact_map_test.go +++ b/weed/storage/needle/compact_map_test.go @@ -5,6 +5,25 @@ import ( "testing" ) +func TestOverflow2(t *testing.T) { + m := NewCompactMap() + m.Set(NeedleId(150088), 8, 3000073) + m.Set(NeedleId(150073), 8, 3000073) + m.Set(NeedleId(150089), 8, 3000073) + m.Set(NeedleId(150076), 8, 3000073) + m.Set(NeedleId(150124), 8, 3000073) + m.Set(NeedleId(150137), 8, 3000073) + m.Set(NeedleId(150147), 8, 3000073) + m.Set(NeedleId(150145), 8, 3000073) + m.Set(NeedleId(150158), 8, 3000073) + m.Set(NeedleId(150162), 8, 3000073) + + m.Visit(func(value NeedleValue) error { + println("needle key:", value.Key) + return nil + }) +} + func TestIssue52(t *testing.T) { m := NewCompactMap() m.Set(NeedleId(10002), 10002, 10002) |
