rocksdb/tools
Sagar Vemuri c94f073e5e Fix Mac build break in casting (#4722)
Summary:
Mac build is failing with the below error:
```
$ make db_bench -j8
...
...
tools/db_bench_tool.cc:4583:25: error: no matching function for call to 'max'
              (uint64_t)std::max(0l, seek_pos - FLAGS_max_scan_distance),
                        ^~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:2717:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('long' vs. 'long long')
max(const _Tp& __a, const _Tp& __b)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:2727:1: note: candidate template ignored: could not match 'initializer_list<type-parameter-0-0>' against 'long'
max(initializer_list<_Tp> __t, _Compare __comp)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:2709:1: note: candidate function template not viable: requires 3 arguments, but 2 were provided
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:2735:1: note: candidate function template not viable: requires single argument '__t', but 2 arguments were provided
max(initializer_list<_Tp> __t)
^
1 error generated.
make: *** [tools/db_bench_tool.o] Error 1
```

My compiler version:
Mac OS X Mojave
```
$ clang++ --version
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
```
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4722

Differential Revision: D13220196

Pulled By: sagar0

fbshipit-source-id: 01e5e928288a5613027c83a26ad8aedf04438b14
2018-11-27 13:30:16 -08:00
..
advisor
dump
rdb
auto_sanity_test.sh
benchmark.sh benchmark.sh: to fix divide by zero runtime error (#4442) 2018-10-10 21:03:19 -07:00
benchmark_leveldb.sh
blob_dump.cc
check_format_compatible.sh Include newer RocksDB versions in compat test (#4634) 2018-11-06 14:25:39 -08:00
CMakeLists.txt
db_bench.cc
db_bench_tool.cc Fix Mac build break in casting (#4722) 2018-11-27 13:30:16 -08:00
db_bench_tool_test.cc Update all unique/shared_ptr instances to be qualified with namespace std (#4638) 2018-11-09 11:19:58 -08:00
db_crashtest.py Enable crash-recovery stress test for atomic flush (#4605) 2018-10-30 14:03:36 -07:00
db_repl_stress.cc Update all unique/shared_ptr instances to be qualified with namespace std (#4638) 2018-11-09 11:19:58 -08:00
db_sanity_test.cc
db_stress.cc Improve result report of scan (#4648) 2018-11-13 20:03:59 -08:00
dbench_monitor
Dockerfile
generate_random_db.sh
ingest_external_sst.sh
ldb.cc
ldb_cmd.cc Add SstFileReader to read sst files (#4717) 2018-11-27 13:02:23 -08:00
ldb_cmd_impl.h
ldb_cmd_test.cc
ldb_test.py
ldb_tool.cc
pflag
reduce_levels_test.cc
regression_test.sh
report_lite_binary_size.sh
rocksdb_dump_test.sh
run_flash_bench.sh
run_leveldb.sh
sample-dump.dmp
sst_dump.cc
sst_dump_test.cc Update all unique/shared_ptr instances to be qualified with namespace std (#4638) 2018-11-09 11:19:58 -08:00
sst_dump_tool.cc Add SstFileReader to read sst files (#4717) 2018-11-27 13:02:23 -08:00
sst_dump_tool_imp.h Add SstFileReader to read sst files (#4717) 2018-11-27 13:02:23 -08:00
trace_analyzer.cc
trace_analyzer_test.cc
trace_analyzer_tool.cc Add unique key number changing statistics to Trace_analyzer (#4646) 2018-11-12 08:26:50 -08:00
trace_analyzer_tool.h Add unique key number changing statistics to Trace_analyzer (#4646) 2018-11-12 08:26:50 -08:00
verify_random_db.sh
write_external_sst.sh
write_stress.cc
write_stress_runner.py