Revert "DbTxn: pass db to generic DbTxn"
This reverts commit 8e89ceb395
.
This commit is contained in:
parent
fa053d2754
commit
1f42fe835f
@ -385,7 +385,7 @@ class Bookmarks(object):
|
|||||||
|
|
||||||
|
|
||||||
class DbGenericTxn(DbTxn):
|
class DbGenericTxn(DbTxn):
|
||||||
def __init__(self, message, batch=False):
|
def __init__(self, message, db, batch=False):
|
||||||
DbTxn.__init__(self, message, db, batch)
|
DbTxn.__init__(self, message, db, batch)
|
||||||
|
|
||||||
def get(self, key, default=None, txn=None, **kwargs):
|
def get(self, key, default=None, txn=None, **kwargs):
|
||||||
@ -1488,7 +1488,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
|
|||||||
kwargs may contain:
|
kwargs may contain:
|
||||||
no_magic
|
no_magic
|
||||||
"""
|
"""
|
||||||
return DbGenericTxn(message, self, batch)
|
return DbGenericTxn(message, batch)
|
||||||
|
|
||||||
def get_from_name_and_handle(self, table_name, handle):
|
def get_from_name_and_handle(self, table_name, handle):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user