Beispiel #1
0
func (ts *Ts) rollbackDbDel(db *db.DB, key []byte) {
	obj := ts.getMagicDb(key)
	if obj != nil {
		db.SetDbObj(key, obj)
	}
	ts.delMagicDb(key)
}
Beispiel #2
0
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)
	}
}