| 1 |
# |
| 2 |
# show_partition_info.inc - print only partition info |
| 3 |
# |
| 4 |
# This file previously used ndb_desc; now it queries ndbinfo.dictionary_tables. |
| 5 |
# |
| 6 |
# Usage: |
| 7 |
# let ndb_table=<table name>; |
| 8 |
# --source show_partition_info.inc |
| 9 |
# |
| 10 |
|
| 11 |
if (!$ndb_table) |
| 12 |
{ |
| 13 |
echo The variable ndb_table must be set when calling show_partition_info.inc; |
| 14 |
die Missing argument ndb_table; |
| 15 |
} |
| 16 |
|
| 17 |
disable_query_log ONCE; |
| 18 |
eval |
| 19 |
SELECT CONCAT("PartitionCount: ", partitions) as 'TABLE_INFO' |
| 20 |
FROM ndbinfo.dictionary_tables |
| 21 |
WHERE table_name="$ndb_table"; |
| 22 |
|
| 23 |
let ndb_table=; |