func (ts *Ts) rollbackDbDel(db *db.DB, key []byte) { obj := ts.getMagicDb(key) if obj != nil { db.SetDbObj(key, obj) } ts.delMagicDb(key) }
func (ts *Ts) commitDbAdd(db *db.DB, key []byte) { obj := ts.getMagicDb(key) log.Println("Obj", obj) if obj != nil { ts.datalog.PutKeyValue(db, key, store.None, obj) db.SetDbObj(key, obj) } }