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
main
Dmitri Smirnov 7 years ago committed by Facebook Github Bot
parent 825a22c00c
commit 8fa4d108a2
  1. 2
      appveyor.yml
  2. 4
      tools/db_stress.cc

@ -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

@ -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<double>(i) / FLAGS_ops_per_thread;
const int64_t base_key = static_cast<int64_t>(
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;

Loading…
Cancel
Save