From 3470c7585202c1be906704cb395468948975400d Mon Sep 17 00:00:00 2001 From: Yanqin Jin Date: Thu, 7 Jun 2018 15:34:42 -0700 Subject: [PATCH] Fix build errors. Summary: Closes https://github.com/facebook/rocksdb/pull/3967 Differential Revision: D8322775 Pulled By: riversand963 fbshipit-source-id: bd73067bd5d3ed4627348f0685bc499359ad6442 --- tools/db_stress.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/db_stress.cc b/tools/db_stress.cc index 3866a754c..653f5acc0 100644 --- a/tools/db_stress.cc +++ b/tools/db_stress.cc @@ -2565,7 +2565,7 @@ class NonBatchedOpsStressTest : public StressTest { int64_t rand_key = rand_keys[0]; int rand_column_family = rand_column_families[0]; auto shared = thread->shared; - int max_key = shared->GetMaxKey(); + int64_t max_key = shared->GetMaxKey(); // OPERATION delete // If the chosen key does not allow overwrite and it does not exist, @@ -2810,7 +2810,11 @@ class BatchedOpsStressTest : public StressTest { WriteOptions& /* write_opts */, const std::vector& /* rand_column_families */, const std::vector& /* rand_keys */, - std::unique_ptr& /* lock */) { assert(false); } + std::unique_ptr& /* lock */) { + assert(false); + return Status::NotSupported("BatchedOpsStressTest does not support " + "TestDeleteRange"); + } // Given a key K, this gets values for "0"+K, "1"+K,..."9"+K // in the same snapshot, and verifies that all the values are of the form