Skip to content

Commit

Permalink
Specify data type in test for tsan (facebookincubator#10153)
Browse files Browse the repository at this point in the history
Summary:
This is to prevent implicit call to deleted constructor of 'const tsan_atomic<uint64_t>'.

Pull Request resolved: facebookincubator#10153

Reviewed By: kgpai

Differential Revision: D58449856

Pulled By: zacw7

fbshipit-source-id: ed45e8fc98fcdbc718cbcfe620c2ecc29a8f04e7
  • Loading branch information
zacw7 authored and facebook-github-bot committed Jun 12, 2024
1 parent 73fb02e commit 9cc123f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions velox/common/caching/tests/AsyncDataCacheTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1112,10 +1112,10 @@ TEST_P(AsyncDataCacheTest, shutdown) {
if (!asyncShutdown) {
waitForSsdWriteToFinish(cache_->ssdCache());
}
const auto bytesWrittenBeforeShutdown =
const uint64_t bytesWrittenBeforeShutdown =
cache_->ssdCache()->stats().bytesWritten;
cache_->ssdCache()->shutdown();
const auto bytesWrittenAfterShutdown =
const uint64_t bytesWrittenAfterShutdown =
cache_->ssdCache()->stats().bytesWritten;

if (asyncShutdown) {
Expand Down

0 comments on commit 9cc123f

Please sign in to comment.