summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2014-09-25 00:15:36 +0000
committerAlex Gorrod <alexg@wiredtiger.com>2014-09-25 00:15:36 +0000
commita001258831b7520010f79b35e79cd9e0b6e31e9d (patch)
treea79cee89fb2f0e7d03a28e5d2a808d25e502be26 /bench
parent29ba293d6f203f833b9bb8f910d7ecce74bcf3ee (diff)
downloadmongo-a001258831b7520010f79b35e79cd9e0b6e31e9d.tar.gz
Fixup compiler warning.
Diffstat (limited to 'bench')
-rw-r--r--bench/wtperf/runners/multi-btree-long.wtperf2
-rw-r--r--bench/wtperf/wtperf.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/bench/wtperf/runners/multi-btree-long.wtperf b/bench/wtperf/runners/multi-btree-long.wtperf
index 86a12badcb2..c5341f96c38 100644
--- a/bench/wtperf/runners/multi-btree-long.wtperf
+++ b/bench/wtperf/runners/multi-btree-long.wtperf
@@ -11,6 +11,6 @@ checkpoint_interval=120
checkpoint_threads=1
report_interval=5
run_time=36000
-threads=((count=1,throttle=4000,reads=1),(count=1,throttle=4000,inserts=1))
+threads=((count=1,throttle=1000,reads=1),(count=1,throttle=1000,inserts=1))
value_sz=100
warmup=10
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c
index 981707a8b3e..418c17279e0 100644
--- a/bench/wtperf/wtperf.c
+++ b/bench/wtperf/wtperf.c
@@ -91,7 +91,7 @@ static int start_threads(CONFIG *,
static int stop_threads(CONFIG *, u_int, CONFIG_THREAD *);
static void *thread_run_wtperf(void *);
static void *worker(void *);
-static void worker_throttle(uint64_t, uint64_t *, struct timespec *);
+static void worker_throttle(int64_t, int64_t *, struct timespec *);
static uint64_t wtperf_rand(CONFIG_THREAD *);
static uint64_t wtperf_value_range(CONFIG *);
@@ -407,8 +407,9 @@ worker(void *arg)
WT_CONNECTION *conn;
WT_CURSOR **cursors, *cursor;
WT_SESSION *session;
+ int64_t throttle_ops;
size_t i;
- uint64_t next_val, throttle_ops, usecs;
+ uint64_t next_val, usecs;
uint8_t *op, *op_end;
int measure_latency, ret;
char *value_buf, *key_buf, *value;
@@ -2221,7 +2222,7 @@ stop_threads(CONFIG *cfg, u_int num, CONFIG_THREAD *threads)
* second and then pause. Doing this every 10th of a second is probably enough
*/
static void
-worker_throttle(uint64_t throttle, uint64_t *ops, struct timespec *interval)
+worker_throttle(int64_t throttle, int64_t *ops, struct timespec *interval)
{
struct timespec now;
uint64_t usecs_to_complete;