From 552c49f0f4a8ac555f7d60ef1f3454f972330cb1 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Tue, 3 Jun 2014 13:58:44 -0700 Subject: [PATCH] Remove upper bound for rate limiting unit test --- util/options.cc | 2 ++ utilities/backupable/backupable_db_test.cc | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/util/options.cc b/util/options.cc index 4fe8b219e..c4d3e5e98 100644 --- a/util/options.cc +++ b/util/options.cc @@ -490,7 +490,9 @@ ColumnFamilyOptions* ColumnFamilyOptions::OptimizeForPointLookup() { BlockBasedTableOptions block_based_options; block_based_options.index_type = BlockBasedTableOptions::kBinarySearch; table_factory.reset(new BlockBasedTableFactory(block_based_options)); +#ifndef ROCKSDB_LITE memtable_factory.reset(NewHashLinkListRepFactory()); +#endif return this; } diff --git a/utilities/backupable/backupable_db_test.cc b/utilities/backupable/backupable_db_test.cc index e6874fe5d..b68f1c65b 100644 --- a/utilities/backupable/backupable_db_test.cc +++ b/utilities/backupable/backupable_db_test.cc @@ -918,7 +918,6 @@ TEST(BackupableDBTest, RateLimiting) { auto rate_limited_backup_time = (bytes_written * kMicrosPerSec) / backupable_options_->backup_rate_limit; ASSERT_GT(backup_time, 0.9 * rate_limited_backup_time); - ASSERT_LT(backup_time, 2.5 * rate_limited_backup_time); CloseBackupableDB();