Revision ed7a95b28c1ee2134327394c68dc344a59e35af5 authored by Huachao Huang on 27 April 2018, 18:48:21 UTC, committed by Facebook Github Bot on 27 April 2018, 18:57:39 UTC
Summary: Sometimes we want to compact files as fast as possible, but don't want to set a large `max_subcompactions` in the `DBOptions` by default. I add a `max_subcompactions` options to `CompactionOptions` so that we can choose a proper concurrency dynamically. Closes https://github.com/facebook/rocksdb/pull/3775 Differential Revision: D7792357 Pulled By: ajkr fbshipit-source-id: 94f54c3784dce69e40a229721a79a97e80cd6a6c
1 parent 7dfbe33
CMakeLists.txt
set(TOOLS
sst_dump.cc
db_sanity_test.cc
db_stress.cc
write_stress.cc
ldb.cc
db_repl_stress.cc
dump/rocksdb_dump.cc
dump/rocksdb_undump.cc)
foreach(src ${TOOLS})
get_filename_component(exename ${src} NAME_WE)
add_executable(${exename}${ARTIFACT_SUFFIX}
${src})
target_link_libraries(${exename}${ARTIFACT_SUFFIX} ${LIBS})
list(APPEND tool_deps ${exename})
endforeach()
add_custom_target(tools
DEPENDS ${tool_deps})
add_custom_target(ldb_tests
COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/ldb_tests.py
DEPENDS ldb)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...