config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/ndb/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/ndb/t/ndb_hashmap.test

-- source include/have_ndb.inc

# use data nodes DefaultHashmapSize
create table t1 (x int primary key) engine=ndbcluster;

CREATE TEMPORARY TABLE IF NOT EXISTS ndb_show_tables_results (
  id INT,
  type VARCHAR(20),
  state VARCHAR(20),
  logging VARCHAR(20),
  _database VARCHAR(255),
  _schema VARCHAR(20),
  name VARCHAR(255)
);

--source ndb_show_tables_result.inc

# Expect to not find any 'HASHMAP...-7'
select name from ndb_show_tables_results
where type like '%0%' and name like '%HASHMAP%-7%';

# use api nodes DefaultHashmapSize
alter table t1 partition by key() partitions 7;

--source ndb_show_tables_result.inc

# Check that a 'HASHMAP...-7' for 'partitions 7' was created
select name from ndb_show_tables_results
where type like '%0%' and name like '%HASHMAP%-7%';

drop table t1, ndb_show_tables_results;

Man Man