flags: Unserializing old checkpoints before the introduction

of the Initialized flag would break, set Initialized for events upon
unserialization.
This commit is contained in:
Lisa Hsu
2010-06-08 17:16:36 -07:00
parent 4977d8b58f
commit d28572499f

View File

@@ -238,7 +238,9 @@ Event::unserialize(Checkpoint *cp, const string &section)
// object itself (since they aren't immediately true)
short _flags;
UNSERIALIZE_SCALAR(_flags);
assert(initialized());
flags = _flags;
flags.set(Initialized);
bool wasScheduled = flags.isSet(Scheduled) && !flags.isSet(Squashed);
flags.clear(Squashed | Scheduled);