Fix a minor clang release build failure (#8290)
Summary: Error message: ``` cache/clock_cache.cc:434:14: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32] *state = end_idx; ~ ^~~~~~~ ``` Make circleci to cover this case by install tbb. Pull Request resolved: https://github.com/facebook/rocksdb/pull/8290 Test Plan: `USE_CLANG=1 make -j1 release` Reviewed By: akankshamahajan15 Differential Revision: D28374672 Pulled By: jay-zhuang fbshipit-source-id: e8c3ee46f2a008e8a599413292e5a4b5151365df
This commit is contained in:
parent
78a309bf86
commit
a6e425dc44
@ -237,7 +237,7 @@ jobs:
|
|||||||
resource_class: xlarge
|
resource_class: xlarge
|
||||||
steps:
|
steps:
|
||||||
- checkout # check out the code in the project directory
|
- checkout # check out the code in the project directory
|
||||||
- run: sudo apt-get update -y && sudo apt-get install -y clang libgflags-dev
|
- run: sudo apt-get update -y && sudo apt-get install -y clang libgflags-dev libtbb-dev
|
||||||
- run: CC=clang CXX=clang++ USE_CLANG=1 PORTABLE=1 make V=1 -j16 all | .circleci/cat_ignore_eagain
|
- run: CC=clang CXX=clang++ USE_CLANG=1 PORTABLE=1 make V=1 -j16 all | .circleci/cat_ignore_eagain
|
||||||
- post-steps
|
- post-steps
|
||||||
|
|
||||||
|
2
cache/clock_cache.cc
vendored
2
cache/clock_cache.cc
vendored
@ -431,7 +431,7 @@ void ClockCacheShard::ApplyToSomeEntries(
|
|||||||
// Mark finished with all
|
// Mark finished with all
|
||||||
*state = UINT32_MAX;
|
*state = UINT32_MAX;
|
||||||
} else {
|
} else {
|
||||||
*state = end_idx;
|
*state = static_cast<uint32_t>(end_idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do the iteration
|
// Do the iteration
|
||||||
|
Loading…
Reference in New Issue
Block a user