Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contrail-collector crash immediately after provisioning
root cause: To state_machine_, sandesh_connection is owner as scoped_ptr. generator as user use state_machine_.get() to access. sandesh _connection will deal with connection close message in one core but generator will deal with redis message in another core. This lead source race condition. We have use mutex lock to protect. but mutex is one part of state_machine_ structure, so to destructed fucntion of state_machine_, protecting is invalid. Solution: Change scoped_ptr to shared_ptr. Change-Id: I1756f8dc0cdd1e7b705af9f1650c6bb8b118e212 Partial-Bug: 1755649
- Loading branch information