avoid deadlock by calling begin_trans() before locking any inodes

This commit is contained in:
Robert Morris 2011-08-15 12:44:20 -04:00
parent c95ce31c59
commit 5053dd6a6d
5 changed files with 66 additions and 15 deletions

4
log.c
View file

@ -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