Skip to content

Commit a099055

Browse files
committedJun 10, 2021
Update submodule terark-zip & minor fix
1 parent 33dc005 commit a099055

File tree

7 files changed

+7
-20
lines changed

7 files changed

+7
-20
lines changed
 

‎CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,6 @@ if(WITH_TESTS)
10191019
monitoring/histogram_test.cc
10201020
monitoring/iostats_context_test.cc
10211021
monitoring/statistics_test.cc
1022-
monitoring/stats_history_test.cc
10231022
options/options_settable_test.cc
10241023
options/options_test.cc
10251024
table/block_based_filter_block_test.cc

‎TARGETS

-12
Original file line numberDiff line numberDiff line change
@@ -1285,18 +1285,6 @@ ROCKS_TESTS = [
12851285
[],
12861286
[],
12871287
],
1288-
[
1289-
"stats_history_test",
1290-
"monitoring/stats_history_test.cc",
1291-
"serial",
1292-
[],
1293-
[],
1294-
],
1295-
[
1296-
"stats_history_test",
1297-
"monitoring/stats_history_test.cc",
1298-
"serial",
1299-
],
13001288
[
13011289
"stringappend_test",
13021290
"utilities/merge_operators/string_append/stringappend_test.cc",

‎build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ fi
2626

2727
git submodule update --init --recursive
2828

29-
cd $BASE/$OUTPUT && cmake ../ -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=${WITH_TESTS} -DWITH_TOOLS=ON -DWITH_TERARK_ZIP=ON
29+
cd $BASE/$OUTPUT && cmake ../ -DCMAKE_INSTALL_PREFIX=$OUTPUT -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=${WITH_TESTS} -DWITH_TOOLS=ON -DWITH_TERARK_ZIP=ON
3030
cd $BASE/$OUTPUT && make -j $(nproc) && make install

‎db/external_sst_file_ingestion_job.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ Status ExternalSstFileIngestionJob::GetIngestedFileInfo(
320320
std::move(sst_file_reader), file_to_ingest->file_size, &table_reader);
321321
if (status.IsInvalidArgument() && status.subcode() == Status::kRequireMmap) {
322322
// this table requires mmap open, make it happy
323-
assert(!env_options.use_mmap_reads);
323+
assert(!env_options_.use_mmap_reads);
324324
EnvOptions mmap_env_options = env_options_;
325325
mmap_env_options.use_mmap_reads = true;
326326
mmap_env_options.use_direct_reads = false;

‎src.mk

-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ MAIN_SOURCES = \
376376
monitoring/histogram_test.cc \
377377
monitoring/iostats_context_test.cc \
378378
monitoring/statistics_test.cc \
379-
monitoring/stats_history_test.cc \
380379
options/options_settable_test.cc \
381380
options/options_test.cc \
382381
table/block_based_filter_block_test.cc \

‎terark-tools/terark-test/chaos_test.cc

+4-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ChaosTest {
5757
auto info = dcache->DumpLRUCacheStatistics();
5858
std::cout << info << std::endl;
5959
using namespace std::chrono;
60-
std::this_thread::sleep_for(60s);
60+
std::this_thread::sleep_for(seconds(60));
6161
}
6262
}
6363

@@ -820,8 +820,9 @@ class ChaosTest {
820820
options.compaction_style = TERARKDB_NAMESPACE::kCompactionStyleLevel;
821821
options.write_buffer_size = size_t(file_size_base / 1.1);
822822
options.enable_lazy_compaction = true;
823-
//bbto.block_cache = NewLRUCache(4ULL << 30, 6, false);
824-
options.table_factory.reset(TERARKDB_NAMESPACE::NewBlockBasedTableFactory(bbto));
823+
// bbto.block_cache = NewLRUCache(4ULL << 30, 6, false);
824+
options.table_factory.reset(
825+
TERARKDB_NAMESPACE::NewBlockBasedTableFactory(bbto));
825826
cfDescriptors.emplace_back("level" + std::to_string(i), options);
826827
}
827828
if (flags_ & TestWorker) {

0 commit comments

Comments
 (0)