@@ -6246,7 +6246,6 @@ int ha_rocksdb::index_read_map_impl(uchar *buf, const uchar *key,
6246
6246
int rc= 0 ;
6247
6247
DBUG_ENTER (" ha_rocksdb::index_read_map" );
6248
6248
6249
- ha_statistic_increment (&SSV::ha_read_key_count);
6250
6249
const std::shared_ptr<const Rdb_key_def>& kd= m_key_descr_arr[active_index];
6251
6250
uint actual_key_parts= kd->get_key_parts ();
6252
6251
bool using_full_key= is_using_full_key (keypart_map, actual_key_parts);
@@ -6791,7 +6790,6 @@ int ha_rocksdb::get_row_by_rowid(uchar *buf, const char *rowid,
6791
6790
int ha_rocksdb::index_next (uchar *buf)
6792
6791
{
6793
6792
bool moves_forward= true ;
6794
- ha_statistic_increment (&SSV::ha_read_next_count);
6795
6793
if (m_key_descr_arr[active_index]->m_is_reverse_cf )
6796
6794
{
6797
6795
moves_forward= false ;
@@ -6807,7 +6805,6 @@ int ha_rocksdb::index_next(uchar *buf)
6807
6805
int ha_rocksdb::index_prev (uchar *buf)
6808
6806
{
6809
6807
bool moves_forward= false ;
6810
- ha_statistic_increment (&SSV::ha_read_prev_count);
6811
6808
if (m_key_descr_arr[active_index]->m_is_reverse_cf )
6812
6809
{
6813
6810
moves_forward= true ;
@@ -6855,7 +6852,6 @@ int ha_rocksdb::index_next_with_direction(uchar *buf, bool move_forward)
6855
6852
int ha_rocksdb::index_first (uchar *buf)
6856
6853
{
6857
6854
m_sk_match_prefix= nullptr ;
6858
- ha_statistic_increment (&SSV::ha_read_first_count);
6859
6855
int rc= m_key_descr_arr[active_index]->m_is_reverse_cf ?
6860
6856
index_last_intern (buf) : index_first_intern (buf);
6861
6857
if (rc == HA_ERR_KEY_NOT_FOUND)
@@ -6867,7 +6863,6 @@ int ha_rocksdb::index_first(uchar *buf)
6867
6863
int ha_rocksdb::index_last (uchar *buf)
6868
6864
{
6869
6865
m_sk_match_prefix= nullptr ;
6870
- ha_statistic_increment (&SSV::ha_read_last_count);
6871
6866
int rc= m_key_descr_arr[active_index]->m_is_reverse_cf ?
6872
6867
index_first_intern (buf) : index_last_intern (buf);
6873
6868
if (rc == HA_ERR_KEY_NOT_FOUND)
@@ -7253,7 +7248,6 @@ int ha_rocksdb::write_row(uchar *buf)
7253
7248
DBUG_ENTER (" ha_rocksdb::write_row" );
7254
7249
DBUG_ASSERT (buf == table->record [0 ]);
7255
7250
DBUG_ASSERT (m_lock_rows == RDB_LOCK_WRITE);
7256
- ha_statistic_increment (&SSV::ha_write_count);
7257
7251
/*
7258
7252
Note: "buf == table->record[0]" is copied from innodb. I am not aware of
7259
7253
any use cases where this condition is not true.
@@ -8022,7 +8016,6 @@ int ha_rocksdb::rnd_init(bool scan)
8022
8016
int ha_rocksdb::rnd_next (uchar *buf)
8023
8017
{
8024
8018
int rc;
8025
- ha_statistic_increment (&SSV::ha_read_rnd_next_count);
8026
8019
for (;;)
8027
8020
{
8028
8021
rc= rnd_next_with_direction (buf, true );
@@ -8205,7 +8198,6 @@ int ha_rocksdb::delete_row(const uchar *buf)
8205
8198
{
8206
8199
DBUG_ENTER (" ha_rocksdb::delete_row" );
8207
8200
8208
- ha_statistic_increment (&SSV::ha_delete_count);
8209
8201
set_last_rowkey (buf);
8210
8202
8211
8203
rocksdb::Slice key_slice (m_last_rowkey.ptr (), m_last_rowkey.length ());
@@ -8436,7 +8428,6 @@ int ha_rocksdb::rnd_pos(uchar *buf, uchar *pos)
8436
8428
size_t len;
8437
8429
DBUG_ENTER (" ha_rocksdb::rnd_pos" );
8438
8430
8439
- ha_statistic_increment (&SSV::ha_read_rnd_count);
8440
8431
stats.rows_requested ++;
8441
8432
len= m_pk_descr->key_length (table, rocksdb::Slice ((const char *)pos,
8442
8433
ref_length));
@@ -8507,7 +8498,6 @@ int ha_rocksdb::update_row(const uchar *old_data, uchar *new_data)
8507
8498
*/
8508
8499
DBUG_ASSERT (new_data == table->record [0 ]);
8509
8500
8510
- ha_statistic_increment (&SSV::ha_update_count);
8511
8501
int rv;
8512
8502
rv= update_write_row (old_data, new_data, false );
8513
8503
0 commit comments