1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-27 21:01:50 +03:00

MCOL-739 Use catalog_tables.size()

Suggested by David Hall. Just in case getTables() is messed up.
This commit is contained in:
Andrew Hutchings
2017-06-06 16:30:41 +01:00
parent ab9e0a509d
commit 850d773a78

View File

@ -1105,7 +1105,7 @@ void MasterDBRMNode::doGetSystemCatalog(ByteStream &msg, ThreadParams *p)
const std::vector< std::pair<execplan::CalpontSystemCatalog::OID, execplan::CalpontSystemCatalog::TableName> > catalog_tables
= systemCatalogPtr->getTables();
reply << (uint32_t) systemCatalogPtr->getTableCount();
reply << (uint32_t) catalog_tables.size();
for (std::vector<std::pair<execplan::CalpontSystemCatalog::OID, execplan::CalpontSystemCatalog::TableName> >::const_iterator it = catalog_tables.begin();
it != catalog_tables.end(); ++it)
{