avoid deadlock by calling begin_trans() before locking any inodes
This commit is contained in:
parent
c95ce31c59
commit
5053dd6a6d
5 changed files with 66 additions and 15 deletions
4
log.c
4
log.c
|
|
@ -124,9 +124,9 @@ static void
|
|||
recover_from_log(void)
|
||||
{
|
||||
read_head();
|
||||
install_trans(); // Install all transactions till head
|
||||
install_trans(); // if committed, copy from log to disk
|
||||
log.lh.n = 0;
|
||||
write_head(); // Reclaim log
|
||||
write_head(); // clear the log
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue