]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/objectstore/TestRocksdbOptionParse.cc: Fix race hazard
authorBill Scales <bill_scales@uk.ibm.com>
Thu, 20 Jun 2024 09:46:17 +0000 (09:46 +0000)
committerBill Scales <bill_scales@uk.ibm.com>
Fri, 21 Jun 2024 10:39:38 +0000 (10:39 +0000)
commite87974613cc25538e7ee6ec8faf93ef76869a9fe
tree44f3c95d26de441ecda4f4189bde700dd8e3afde
parent9d95021c7e14074aea18034256d627f66219156d
test/objectstore/TestRocksdbOptionParse.cc: Fix race hazard

Race hazard - rocksdb does not register its threads until they start
running, and only guarantees the threads have been created before
returning. We need to be prepared to wait for the scheduler to
run the threads to avoid false positives.

Fixes: https://tracker.ceph.com/issues/66575
Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
src/test/objectstore/TestRocksdbOptionParse.cc