Skip to content

Commit b665733

Browse files
committed
[fix] fixed requests_generate double incr on cluster mode
1 parent 4308104 commit b665733

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

client.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#include "obj_gen.h"
3838
#include "memtier_benchmark.h"
3939
#include "run_stats.h"
40-
#include "JSON_handler.h"
4140

4241
#define MAIN_CONNECTION m_connections[0]
4342

@@ -61,7 +60,6 @@ class client : public connections_manager {
6160
benchmark_config* m_config;
6261
object_generator* m_obj_gen;
6362
run_stats m_stats;
64-
unsigned long long client_index;
6563

6664
unsigned long long m_reqs_processed; // requests processed (responses received)
6765
unsigned long long m_reqs_generated; // requests generated (wait for responses)
@@ -85,8 +83,6 @@ class client : public connections_manager {
8583
bool initialized(void);
8684

8785
run_stats* get_stats(void) { return &m_stats; }
88-
object_generator* get_obj_gen(void) { return m_obj_gen; }
89-
unsigned long long get_client_index(void) { return client_index; }
9086

9187
// client manager api's
9288
unsigned long long get_reqs_processed() {

cluster_client.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ void cluster_client::create_arbitrary_request(const arbitrary_command* cmd, stru
393393
}
394394

395395
m_connections[conn_id]->send_arbitrary_command_end(m_executed_command_index, &timestamp, cmd_size);
396-
m_reqs_generated++;
397396
}
398397

399398
// This function could use some urgent TLC -- but we need to do it without altering the behavior

0 commit comments

Comments
 (0)