From 850d773a786e805e98fa3e247ec4000608487dba Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Tue, 6 Jun 2017 16:30:41 +0100 Subject: [PATCH] MCOL-739 Use catalog_tables.size() Suggested by David Hall. Just in case getTables() is messed up. --- versioning/BRM/masterdbrmnode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioning/BRM/masterdbrmnode.cpp b/versioning/BRM/masterdbrmnode.cpp index 09ec7dfee..112ea7232 100644 --- a/versioning/BRM/masterdbrmnode.cpp +++ b/versioning/BRM/masterdbrmnode.cpp @@ -1105,7 +1105,7 @@ void MasterDBRMNode::doGetSystemCatalog(ByteStream &msg, ThreadParams *p) const std::vector< std::pair > catalog_tables = systemCatalogPtr->getTables(); - reply << (uint32_t) systemCatalogPtr->getTableCount(); + reply << (uint32_t) catalog_tables.size(); for (std::vector >::const_iterator it = catalog_tables.begin(); it != catalog_tables.end(); ++it) {