Merge pull request #1037 from SherlockNoMad/BuildFix
Fix AppVeyor build error
This commit is contained in:
commit
17b879b91e
@ -238,6 +238,7 @@ set(SOURCES
|
|||||||
util/thread_status_updater.cc
|
util/thread_status_updater.cc
|
||||||
util/thread_status_util.cc
|
util/thread_status_util.cc
|
||||||
util/thread_status_util_debug.cc
|
util/thread_status_util_debug.cc
|
||||||
|
util/transaction_test_util.cc
|
||||||
util/xfunc.cc
|
util/xfunc.cc
|
||||||
util/xxhash.cc
|
util/xxhash.cc
|
||||||
utilities/backupable/backupable_db.cc
|
utilities/backupable/backupable_db.cc
|
||||||
|
@ -3764,7 +3764,7 @@ class Benchmark {
|
|||||||
ReadOptions options(FLAGS_verify_checksum, true);
|
ReadOptions options(FLAGS_verify_checksum, true);
|
||||||
Duration duration(FLAGS_duration, readwrites_);
|
Duration duration(FLAGS_duration, readwrites_);
|
||||||
ReadOptions read_options(FLAGS_verify_checksum, true);
|
ReadOptions read_options(FLAGS_verify_checksum, true);
|
||||||
uint64_t num_prefix_ranges = FLAGS_transaction_sets;
|
uint16_t num_prefix_ranges = static_cast<uint16_t>(FLAGS_transaction_sets);
|
||||||
uint64_t transactions_done = 0;
|
uint64_t transactions_done = 0;
|
||||||
|
|
||||||
if (num_prefix_ranges == 0 || num_prefix_ranges > 9999) {
|
if (num_prefix_ranges == 0 || num_prefix_ranges > 9999) {
|
||||||
@ -3836,7 +3836,8 @@ class Benchmark {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Status s =
|
Status s =
|
||||||
RandomTransactionInserter::Verify(db_.db, FLAGS_transaction_sets);
|
RandomTransactionInserter::Verify(db_.db,
|
||||||
|
static_cast<uint16_t>(FLAGS_transaction_sets));
|
||||||
|
|
||||||
if (s.ok()) {
|
if (s.ok()) {
|
||||||
fprintf(stdout, "RandomTransactionVerify Success.\n");
|
fprintf(stdout, "RandomTransactionVerify Success.\n");
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
#ifndef ROCKSDB_LITE
|
#ifndef ROCKSDB_LITE
|
||||||
|
|
||||||
#include "rocksdb/options.h"
|
#include "rocksdb/options.h"
|
||||||
|
#include "port/port.h"
|
||||||
#include "rocksdb/utilities/optimistic_transaction_db.h"
|
#include "rocksdb/utilities/optimistic_transaction_db.h"
|
||||||
#include "rocksdb/utilities/transaction_db.h"
|
#include "rocksdb/utilities/transaction_db.h"
|
||||||
|
|
||||||
|
@ -1284,7 +1284,8 @@ Status OptimisticTransactionStressTestInserter(OptimisticTransactionDB* db,
|
|||||||
txn_options.set_snapshot = true;
|
txn_options.set_snapshot = true;
|
||||||
|
|
||||||
RandomTransactionInserter inserter(&_rand, write_options, read_options,
|
RandomTransactionInserter inserter(&_rand, write_options, read_options,
|
||||||
num_keys_per_set, num_sets);
|
num_keys_per_set,
|
||||||
|
static_cast<uint16_t>(num_sets));
|
||||||
|
|
||||||
for (size_t t = 0; t < num_transactions; t++) {
|
for (size_t t = 0; t < num_transactions; t++) {
|
||||||
bool success = inserter.OptimisticTransactionDBInsert(db, txn_options);
|
bool success = inserter.OptimisticTransactionDBInsert(db, txn_options);
|
||||||
|
@ -2996,7 +2996,8 @@ Status TransactionStressTestInserter(TransactionDB* db,
|
|||||||
txn_options.set_snapshot = true;
|
txn_options.set_snapshot = true;
|
||||||
|
|
||||||
RandomTransactionInserter inserter(&_rand, write_options, read_options,
|
RandomTransactionInserter inserter(&_rand, write_options, read_options,
|
||||||
num_keys_per_set, num_sets);
|
num_keys_per_set,
|
||||||
|
static_cast<uint16_t>(num_sets));
|
||||||
|
|
||||||
for (size_t t = 0; t < num_transactions; t++) {
|
for (size_t t = 0; t < num_transactions; t++) {
|
||||||
bool success = inserter.TransactionDBInsert(db, txn_options);
|
bool success = inserter.TransactionDBInsert(db, txn_options);
|
||||||
|
Loading…
Reference in New Issue
Block a user