compact map fix bug when iterating
This commit is contained in:
@@ -131,7 +131,7 @@ func doSomeWritesDeletes(i int, v *Volume, t *testing.T, infos []*needleInfo) {
|
||||
crc: n.Checksum,
|
||||
}
|
||||
// println("written file", i, "checksum", n.Checksum.Value(), "size", size)
|
||||
if rand.Float64() < 0.5 {
|
||||
if rand.Float64() < 0.03 {
|
||||
toBeDeleted := rand.Intn(i) + 1
|
||||
oldNeedle := newEmptyNeedle(uint64(toBeDeleted))
|
||||
v.deleteNeedle(oldNeedle)
|
||||
|
||||
Reference in New Issue
Block a user