D 2010-06-17T13:22:33 J comment If\s"PRAGMA\sjournal_mode"\sis\sused\sto\schange\sa\sconnection\sfrom\sTRUNCATE\sor\sPERSIST\smode\sto\sWAL,\sMEMORY,\sOFF\sor\sDELETE\smode,\sthe\sjournal\sfile\sis\sdeleted.\sEven\sif\sit\sis\scurrently\sbeing\sused\sby\sanother\sconnection\s(possibly\sin\sanother\sprocess).\r\n\r\nOn\sunix,\sif\sthat\sother\sconnection\s(possibly\sin\sanother\sprocess)\sis\sexecuting\sa\swrite\stransaction\swhen\sthis\shappens,\sand\sthe\sprocess\sexits\sunexpectedly\sfor\ssome\sreason,\sthere\swill\sbe\sno\shot-journal\sfile\sleft\sin\sthe\sfile-system.\sIf\sthe\sconnection\shad\sbegun\swriting\sto\sthe\sdatabase\sfile\sbefore\sthe\sunexpected\sexit,\sthe\sdatabase\smay\sbe\sleft\sin\sa\scorrupt\sstate.\r\n\r\n