Fix a deadlock.
We were holding a database open with a read lock while a child redo might need to open it with a write lock.
This commit is contained in:
parent
9e36106642
commit
f4535be0cd
1 changed files with 1 additions and 1 deletions
2
state.py
2
state.py
|
|
@ -180,7 +180,7 @@ class File(object):
|
||||||
|
|
||||||
def deps(self):
|
def deps(self):
|
||||||
q = "select mode, source from Deps where target=?"
|
q = "select mode, source from Deps where target=?"
|
||||||
for mode,source_id in db().execute(q, [self.id]):
|
for mode,source_id in db().execute(q, [self.id]).fetchall():
|
||||||
assert(mode in ('c', 'm'))
|
assert(mode in ('c', 'm'))
|
||||||
name = File(id=source_id).name
|
name = File(id=source_id).name
|
||||||
yield mode,name
|
yield mode,name
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue