xiaoxuxiansheng / golsm

41 stars 8 forks source link

LSM Tree 单测失败 #6

Open yrlovejava opened 2 weeks ago

yrlovejava commented 2 weeks ago

在获取本轮压缩的所有kv对的那里有问题,在创建完切片之后,不应该append kv 对数据,这样会造成前面有 len(_kvs) 个 nil 数据。所以应该改为for i, kv := range _kvs { kvs[i] = &goLSM.KV{ Key: kv.Key, Value: kv.Value, } }