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:
Jay Zhuang 2021-05-12 10:44:28 -07:00 committed by Facebook GitHub Bot
parent 78a309bf86
commit a6e425dc44
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ jobs:
resource_class: xlarge
steps:
- 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
- post-steps

View File

@ -431,7 +431,7 @@ void ClockCacheShard::ApplyToSomeEntries(
// Mark finished with all
*state = UINT32_MAX;
} else {
*state = end_idx;
*state = static_cast<uint32_t>(end_idx);
}
// Do the iteration