commit | 3ff32bf64e78001c29d0f5b523b4da4f8e7b2669 | [log] [tgz] |
---|---|---|
author | Hector Oswaldo Caballero <hector.caballero@ericsson.com> | Mon May 16 15:42:27 2016 -0400 |
committer | Hector Oswaldo Caballero <hector.caballero@ericsson.com> | Fri May 20 11:15:30 2016 -0400 |
tree | bf2d14b0cb5e96c9fb165da6fe54d7be71f1e7ba | |
parent | 5ed79cf515a8bdad660f4a106bcdc1bdda34dc6b [diff] |
Avoid race condition between indexing threads When more than one thread try to index a change in the target instance, it could be possible that, because of a race condition, the last thread writes an outdated status to the index. Synchronize the threads indexing the same change while still allowing parallelization between threads indexing different changes. Change-Id: Ic47c9d220f124c096e5e66bb46d13a9a7b0f51e7