(db *DB)
| 333 | } |
| 334 | |
| 335 | func newSkipList(db *DB) *SkipList { |
| 336 | skipList := &SkipList{ |
| 337 | db: db, |
| 338 | level: 1, |
| 339 | dict: make(map[uint32]*SkipListNode), |
| 340 | } |
| 341 | hash, _ := utils.GetFnv32([]byte("")) |
| 342 | skipList.header = createNode(SkipListMaxLevel, 0, hash, nil) |
| 343 | return skipList |
| 344 | } |
| 345 | |
| 346 | func (sl *SkipList) cmp(r1 *core.Record, r2 *core.Record) int { |
| 347 | val1, _ := sl.db.getValueByRecord(r1) |
no test coverage detected