@@ -4893,14 +4893,15 @@ static bool rocksdb_show_status(handlerton *const hton, THD *const thd,
48934893 // NB! We're replacing hyphens with underscores in output to better match
48944894 // the existing naming convention.
48954895 if (rdb->GetIntProperty("rocksdb.is-write-stopped", &v)) {
4896- snprintf(buf, sizeof(buf), "rocksdb.is_write_stopped COUNT : %lu\n", v);
4896+ snprintf(buf, sizeof(buf),
4897+ "rocksdb.is_write_stopped COUNT : %" PRIu64 "\n", v);
48974898 str.append(buf);
48984899 }
48994900
49004901 if (rdb->GetIntProperty("rocksdb.actual-delayed-write-rate", &v)) {
49014902 snprintf(buf, sizeof(buf),
49024903 "rocksdb.actual_delayed_write_rate "
4903- "COUNT : %lu \n",
4904+ "COUNT : %" PRIu64 " \n",
49044905 v);
49054906 str.append(buf);
49064907 }
@@ -4970,16 +4971,16 @@ static bool rocksdb_show_status(handlerton *const hton, THD *const thd,
49704971 rocksdb::MemoryUtil::GetApproximateMemoryUsageByType(dbs, cache_set,
49714972 &temp_usage_by_type);
49724973
4973- snprintf(buf, sizeof(buf), "\nMemTable Total: %lu" ,
4974+ snprintf(buf, sizeof(buf), "\nMemTable Total: %" PRIu64 ,
49744975 temp_usage_by_type[rocksdb::MemoryUtil::kMemTableTotal]);
49754976 str.append(buf);
4976- snprintf(buf, sizeof(buf), "\nMemTable Unflushed: %lu" ,
4977+ snprintf(buf, sizeof(buf), "\nMemTable Unflushed: %" PRIu64 ,
49774978 temp_usage_by_type[rocksdb::MemoryUtil::kMemTableUnFlushed]);
49784979 str.append(buf);
4979- snprintf(buf, sizeof(buf), "\nTable Readers Total: %lu" ,
4980+ snprintf(buf, sizeof(buf), "\nTable Readers Total: %" PRIu64 ,
49804981 temp_usage_by_type[rocksdb::MemoryUtil::kTableReadersTotal]);
49814982 str.append(buf);
4982- snprintf(buf, sizeof(buf), "\nCache Total: %lu" ,
4983+ snprintf(buf, sizeof(buf), "\nCache Total: %" PRIu64 ,
49834984 temp_usage_by_type[rocksdb::MemoryUtil::kCacheTotal]);
49844985 str.append(buf);
49854986 snprintf(buf, sizeof(buf), "\nDefault Cache Capacity: %lu",
0 commit comments