From aaf65f9943a864d2f76ffc3071dc9c05c64cd8e7 Mon Sep 17 00:00:00 2001 From: david hill Date: Fri, 27 May 2016 09:21:23 -0500 Subject: [PATCH] add check for confirm arg in restartprocess --- oamapps/mcsadmin/mcsadmin.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/oamapps/mcsadmin/mcsadmin.cpp b/oamapps/mcsadmin/mcsadmin.cpp index e5c546f39..4511c876a 100644 --- a/oamapps/mcsadmin/mcsadmin.cpp +++ b/oamapps/mcsadmin/mcsadmin.cpp @@ -6835,9 +6835,13 @@ int ProcessSupportCommand(int CommandID, std::string arguments[]) getFlags(arguments, gracefulTemp, ackTemp, suspendAnswer, bNeedsConfirm); - // confirm request - if (confirmPrompt("This command restarts the processing of an application on a Module within the MariaDB Columnstore System")) - break; + if (arguments[3] != "y") + { + // confirm request + if (confirmPrompt("This command restarts the processing of an application on a Module within the MariaDB Columnstore System")) + break; + } + try {