Commit e0b002f5 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9bc6b2e8
...@@ -222,7 +222,7 @@ func (cache *LiveCache) Get(oid Oid) IPersistent { ...@@ -222,7 +222,7 @@ func (cache *LiveCache) Get(oid Oid) IPersistent {
} }
// 2. lookup in !pinned referenced object (they are likely to be loaded // 2. lookup in !pinned referenced object (they are likely to be loaded
// going from a referee) // going from a referrer)
wobj := cache.objtab[oid] wobj := cache.objtab[oid]
if wobj != nil { if wobj != nil {
if xobj := wobj.Get(); xobj != nil { if xobj := wobj.Get(); xobj != nil {
......
...@@ -607,6 +607,7 @@ func testPersistentDB(t0 *testing.T, rawcache bool) { ...@@ -607,6 +607,7 @@ func testPersistentDB(t0 *testing.T, rawcache bool) {
t.checkObj(obj1, 101, InvalidTid, GHOST, 0) t.checkObj(obj1, 101, InvalidTid, GHOST, 0)
t.checkObj(obj2, 102, at2, UPTODATE, 0, "kitty") t.checkObj(obj2, 102, at2, UPTODATE, 0, "kitty")
// finish tnx3 and txn2 - conn1 and conn2 go back to db pool // finish tnx3 and txn2 - conn1 and conn2 go back to db pool
t.Abort() t.Abort()
t2.Abort() t2.Abort()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment