Commit 4467ebea authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a520c82e
...@@ -165,8 +165,11 @@ func (db *DB) get(at Tid) *Connection { ...@@ -165,8 +165,11 @@ func (db *DB) get(at Tid) *Connection {
db.connv[l-1] = nil db.connv[l-1] = nil
db.connv = db.connv[:l-1] db.connv = db.connv[:l-1]
if !(conn.db == db && conn.txn == nil) { if conn.db != db {
panic("DB.get: foreign/live connection in the pool") panic("DB.get: foreign connection in the pool")
}
if conn.txn != nil) {
panic("DB.get: live connection in the pool")
} }
if conn.at != at { if conn.at != at {
......
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