mirror of https://github.com/facebook/rocksdb.git
Fix std::cout data race
Summary: std::cout is not thread safe. tsan complains. Eliminate it. Test Plan: env_test with TSAN Reviewers: yhchiang, rven, sdong Reviewed By: sdong Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D33087
This commit is contained in:
parent
8f679c2901
commit
218c3ecea3
|
@ -141,8 +141,6 @@ TEST(EnvPosixTest, TwoPools) {
|
||||||
{
|
{
|
||||||
MutexLock l(&mu_);
|
MutexLock l(&mu_);
|
||||||
num_running_++;
|
num_running_++;
|
||||||
std::cout << "Pool " << pool_name_ << ": "
|
|
||||||
<< num_running_ << " running threads.\n";
|
|
||||||
// make sure we don't have more than pool_size_ jobs running.
|
// make sure we don't have more than pool_size_ jobs running.
|
||||||
ASSERT_LE(num_running_, pool_size_.load());
|
ASSERT_LE(num_running_, pool_size_.load());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue