From 8fa4d108a24617c0e0b98b1ed224fe444e7e9a76 Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Thu, 31 Aug 2017 10:18:58 -0700 Subject: [PATCH] Try to switch to Stduio 2017 Summary: Closes https://github.com/facebook/rocksdb/pull/2802 Differential Revision: D5746710 Pulled By: siying fbshipit-source-id: daa621ba5fccb84c0d6cdb7755c5e09319c45cb4 --- appveyor.yml | 2 +- tools/db_stress.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index f582bb195..7bcfb699d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,7 +8,7 @@ before_build: build: project: build\rocksdb.sln parallel: true - verbosity: minimal + verbosity: normal test: test_script: - ps: build_tools\run_ci_db_test.ps1 -SuiteRun db_basic_test,db_test2,db_test,env_basic_test,env_test -Concurrency 8 diff --git a/tools/db_stress.cc b/tools/db_stress.cc index d18eeab0c..e5361233b 100644 --- a/tools/db_stress.cc +++ b/tools/db_stress.cc @@ -885,7 +885,7 @@ class SharedState { bool HasVerificationFailedYet() { return verification_failure_.load(); } - port::Mutex* GetMutexForKey(int cf, long key) { + port::Mutex* GetMutexForKey(int cf, int64_t key) { return key_locks_[cf][key >> log2_keys_per_lock_].get(); } @@ -1773,7 +1773,7 @@ class StressTest { static_cast(i) / FLAGS_ops_per_thread; const int64_t base_key = static_cast( completed_ratio * (FLAGS_max_key - FLAGS_active_width)); - long rand_key = base_key + thread->rand.Next() % FLAGS_active_width; + int64_t rand_key = base_key + thread->rand.Next() % FLAGS_active_width; int rand_column_family = thread->rand.Next() % FLAGS_column_families; std::string keystr = Key(rand_key); Slice key = keystr;