From 6ab434e708c77e720f2d7a359945b08f61f0f650 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Wed, 22 Mar 2017 17:45:45 +0000 Subject: [PATCH] MCOL-605 Fix multi-node "Unkown error" The string stream which builds up the PM details wasn't cleared on each run. This moves the creation of the string stream up to where it is needed so a clean one is used each time. --- dbcon/mysql/is_columnstore_files.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbcon/mysql/is_columnstore_files.cpp b/dbcon/mysql/is_columnstore_files.cpp index f70e646e0..2ddb393fe 100644 --- a/dbcon/mysql/is_columnstore_files.cpp +++ b/dbcon/mysql/is_columnstore_files.cpp @@ -109,7 +109,6 @@ static int is_columnstore_files_fill(THD *thd, TABLE_LIST *tables, COND *cond) messageqcpp::MessageQueueClient *msgQueueClient; oam::Oam oam_instance; int pmId = 0; - std::ostringstream oss; if (!emp || !emp->isDBRMReady()) { @@ -155,6 +154,7 @@ static int is_columnstore_files_fill(THD *thd, TABLE_LIST *tables, COND *cond) if (!msgQueueClient) { oam_instance.getDbrootPmConfig(iter->dbRoot, pmId); + std::ostringstream oss; oss << "pm" << pmId << "_WriteEngineServer"; try {