(ef_open_srv, start_server): Journal must not be written before
empth_init(), because writing calls empth_self(). Move call of journal_startup(). (ef_close_srv, finish_server, panic): Move call of journal_shutdown() for symmetry.
This commit is contained in:
parent
befac7cf83
commit
d62355e76d
3 changed files with 6 additions and 3 deletions
|
@ -34,7 +34,6 @@
|
|||
#include <config.h>
|
||||
|
||||
#include "file.h"
|
||||
#include "journal.h"
|
||||
#include "prototypes.h"
|
||||
|
||||
struct fileinit {
|
||||
|
@ -100,7 +99,6 @@ ef_open_srv(void)
|
|||
{
|
||||
int failed = 0;
|
||||
|
||||
failed |= journal_startup() < 0;
|
||||
failed |= !ef_open(EF_NATION, EFF_MEM);
|
||||
failed |= !ef_open(EF_SECTOR, EFF_MEM);
|
||||
failed |= !ef_open(EF_SHIP, EFF_MEM);
|
||||
|
@ -145,7 +143,6 @@ ef_close_srv(void)
|
|||
ef_close(EF_BMAP);
|
||||
ef_close(EF_LOST);
|
||||
ef_close(EF_REALM);
|
||||
journal_shutdown();
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue