Closed ghost closed 2 years ago
Found with thread sanitizer so I'm not 100% sure this will hit in the real world. The idea is the write for the bool cluster->valid is not guarded. The check here is guarded https://github.com/aerospike/aerospike-client-c/blob/master/src/main/aerospike/as_shm_cluster.c#L802 but the bool is not guarded on destory.
Your pull request has been accepted into our stage branch. It will be included in the next C client release.
C client 5.2.8 is released: https://download.aerospike.com/download/client/c/notes.html#5.2.8
Found with thread sanitizer so I'm not 100% sure this will hit in the real world. The idea is the write for the bool cluster->valid is not guarded. The check here is guarded https://github.com/aerospike/aerospike-client-c/blob/master/src/main/aerospike/as_shm_cluster.c#L802 but the bool is not guarded on destory.