Debian Codegraph @

mysql-test/suite/ndb/t/ndb_var_mem_usage.inc

raw
1 --disable_query_log
2 --disable_result_log
3 #save the old memory stats in case if it exists
4 select @var_used_bytes into @old_var_used_bytes;
5 #now fetch the new memory stats
6 --source suite/ndb/include/ndb_info.inc
7 eval
8 select sum(var_elem_alloc_bytes - var_elem_free_bytes)/$MTR_NDB_NO_OF_REPLICAS
9 into @var_used_bytes
10 from ndbinfo.memory_per_fragment
11 where fq_name like '%t1'
12 group by table_id;
13 --enable_result_log
14 --enable_query_log