Lines Matching full:records
27 Records map[string]Record // in-memory cache, must not be modified directly member
30 uncompacted int // number of records in the file
47 db.Version, db.Records, db.uncompacted = deserializeDB(bufio.NewReader(f))
49 if len(db.Records) == 0 || db.uncompacted/10*9 > len(db.Records) {
61 if rec, ok := db.Records[key]; ok && seq == rec.Seq && bytes.Equal(val, rec.Val) {
64 db.Records[key] = Record{val, seq}
70 if _, ok := db.Records[key]; !ok {
73 delete(db.Records, key)
79 if db.uncompacted/10*9 > len(db.Records) {
108 for key, rec := range db.Records {
123 db.uncompacted = len(db.Records)
177 func deserializeDB(r *bufio.Reader) (version uint64, records map[string]Record, uncompacted int) {
178 records = make(map[string]Record)
196 delete(records, key)
198 records[key] = Record{val, seq}