|
1 | 1 | /* |
2 | | - Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
| 2 | + Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved. |
3 | 3 |
|
4 | 4 | This program is free software; you can redistribute it and/or modify |
5 | 5 | it under the terms of the GNU General Public License, version 2.0, |
@@ -724,26 +724,6 @@ NdbDictionary::Table::setSingleUserMode(enum NdbDictionary::Table::SingleUserMod |
724 | 724 | m_impl.m_single_user_mode = (Uint8)mode; |
725 | 725 | } |
726 | 726 |
|
727 | | -#if 0 |
728 | | -int |
729 | | -NdbDictionary::Table::setTablespaceNames(const void *data, Uint32 len) |
730 | | -{ |
731 | | - return m_impl.setTablespaceNames(data, len); |
732 | | -} |
733 | | - |
734 | | -const void* |
735 | | -NdbDictionary::Table::getTablespaceNames() |
736 | | -{ |
737 | | - return m_impl.getTablespaceNames(); |
738 | | -} |
739 | | - |
740 | | -Uint32 |
741 | | -NdbDictionary::Table::getTablespaceNamesLen() const |
742 | | -{ |
743 | | - return m_impl.getTablespaceNamesLen(); |
744 | | -} |
745 | | -#endif |
746 | | - |
747 | 727 | void |
748 | 728 | NdbDictionary::Table::setLinearFlag(Uint32 flag) |
749 | 729 | { |
@@ -4596,6 +4576,21 @@ void NdbDictionary::Dictionary::print(NdbOut& ndbout, NdbDictionary::Table const |
4596 | 4576 | ndbout << "HashMap: " << hashmap.getName() << endl; |
4597 | 4577 | } |
4598 | 4578 |
|
| 4579 | + Uint32 tablespace_id; |
| 4580 | + if (tab.getTablespace(&tablespace_id)) |
| 4581 | + { |
| 4582 | + ndbout << "Tablespace id: " << tablespace_id << endl; |
| 4583 | + |
| 4584 | + // Look up tablespace by id and show the name |
| 4585 | + // NOTE! The tablespace name of a table object which |
| 4586 | + // has been fetched from NDB is not assigned any value. |
| 4587 | + const NdbDictionary::Tablespace ts = getTablespace(tablespace_id); |
| 4588 | + if (getNdbError().code == 0) |
| 4589 | + { |
| 4590 | + ndbout << "Tablespace: " << ts.getName() << endl; |
| 4591 | + } |
| 4592 | + } |
| 4593 | + |
4599 | 4594 | ndbout << "-- Attributes --" << endl; |
4600 | 4595 | for (int col = 0; col < tab.getNoOfColumns() ; col++) |
4601 | 4596 | { |
|
0 commit comments