From 218c3ecea3de9b0ced9e9ab7b68810e5e2e1b337 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Fri, 6 Feb 2015 13:01:59 -0800 Subject: [PATCH] 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 --- util/env_test.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/util/env_test.cc b/util/env_test.cc index 3511d985b..351f6358a 100644 --- a/util/env_test.cc +++ b/util/env_test.cc @@ -141,8 +141,6 @@ TEST(EnvPosixTest, TwoPools) { { MutexLock l(&mu_); num_running_++; - std::cout << "Pool " << pool_name_ << ": " - << num_running_ << " running threads.\n"; // make sure we don't have more than pool_size_ jobs running. ASSERT_LE(num_running_, pool_size_.load()); }