Fix a bug in synchronous model similarity

This commit is contained in:
2021-12-21 15:22:26 -05:00
parent f2a20c0231
commit b4639c70db
5 changed files with 48 additions and 16 deletions

View File

@@ -24,18 +24,15 @@ public:
// Create the world model.
world_.reset(new World(util::WORLD_TYPE_C_SYNC));
// Snapshot the initial state.
world_->snapshot();
// Clear the unack command queue.
unack_.clear();
// This is a temporary actor that will be used only until the server sends
// us the first difference transmission. We do this only to establish
// the invariant that there's always an actor. When the first difference
// transmission arrives, this actor may be deleted, or it may just be
// ignored, at the server's discretion.
actor_id_ = world_->create_login_actor();
// Clear the unack command queue.
unack_.clear();
}