prevent a checkpoint from executing too early
This commit is contained in:
@@ -1376,6 +1376,9 @@ save_currentstate(void)
|
|||||||
{
|
{
|
||||||
NHFILE *nhfp;
|
NHFILE *nhfp;
|
||||||
|
|
||||||
|
if (!program_state.something_worth_saving)
|
||||||
|
return;
|
||||||
|
|
||||||
program_state.in_checkpoint++;
|
program_state.in_checkpoint++;
|
||||||
if (flags.ins_chkpt) {
|
if (flags.ins_chkpt) {
|
||||||
/* write out just-attained level, with pets and everything */
|
/* write out just-attained level, with pets and everything */
|
||||||
|
|||||||
Reference in New Issue
Block a user