Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/storage/rocksdb/ha_rocksdb.cc b/storage/rocksdb/ha_rocksdb.cc
- index c1c3191..0a98d18 100644
- --- a/storage/rocksdb/ha_rocksdb.cc
- +++ b/storage/rocksdb/ha_rocksdb.cc
- @@ -10308,6 +10308,10 @@ int ha_rocksdb::info(uint flag) {
- if (stats.records == 0) {
- rdb->GetApproximateSizes(m_pk_descr->get_cf(), &r, 1, &sz,
- include_flags);
- + fprintf(stderr,
- + "AAA: GetApproximateSizes() call #1, value %g\n",
- + double(sz)/ROCKSDB_ASSUMED_KEY_VALUE_DISK_SIZE);
- +
- stats.records+= sz/ROCKSDB_ASSUMED_KEY_VALUE_DISK_SIZE;
- stats.data_file_length+= sz;
- }
- @@ -10326,6 +10330,9 @@ int ha_rocksdb::info(uint flag) {
- // cardinality for memtable only indxes will be reported as 0
- rdb->GetApproximateMemTableStats(m_pk_descr->get_cf(), r,
- &memtableCount, &memtableSize);
- + fprintf(stderr,
- + "AAA: GetApproximateMemTableStats() call#1 returns %ld \n",
- + (long)memtableCount);
- // Atomically update all of these fields at the same time
- if (cachetime > 0) {
- @@ -11257,6 +11264,11 @@ ha_rows ha_rocksdb::records_in_range(uint inx, key_range *const min_key,
- ret = rows * sz / disk_size;
- uint64_t memTableCount;
- rdb->GetApproximateMemTableStats(kd.get_cf(), r, &memTableCount, &sz);
- +
- + fprintf(stderr,
- + "AAA: GetApproximateMemTableStats() call#2 returns %ld\n",
- + (long)memTableCount);
- +
- ret += memTableCount;
- /*
- @@ -11408,6 +11420,10 @@ int ha_rocksdb::calculate_stats(const TABLE *const table_arg, THD *const thd,
- uint64_t memtableSize;
- rdb->GetApproximateMemTableStats(kd.get_cf(), r, &memtableCount,
- &memtableSize);
- + fprintf(stderr,
- + "AAA: GetApproximateMemTableStats() call #3 returns %ld\n",
- + (long)memtableCount);
- +
- if (memtableCount < (uint64_t)stat.m_rows / 10) {
- // skip tables that already have enough stats from SST files to reduce
- // overhead and avoid degradation of big tables stats by sampling from
Add Comment
Please, Sign In to add comment