updateSubTransactionOpStatus($clusterName, $parentSubTxnId, $mySubTxnId, $opStatus); if ($subTransactionReturnValue["result"] != 0 ) { $logger->log_error("Got error while updating subTxn: ".$subTransactionReturnValue["error"]); print json_encode($subTransactionReturnValue); return; } runPdsh($clusterName, $operationName, $deployUser, $hostsStr, $cmdLine); $retArr = parseAndUpdateNodeInfo($clusterName, $operationName, $logger); $allHosts = $retArr["allHosts"]; $finalOpStatus = $retArr["finalOpStatus"]; // Perisist the data to the db. $returnValue = $dbAccessor->addHostsToCluster($clusterName, $allHosts); if ($returnValue["result"] != 0 ) { $logger->log_error("Got error while adding hosts: ".$returnValue["error"]); print json_encode($returnValue); return; } $subTransactionReturnValue = $dbAccessor->updateSubTransactionOpStatus($clusterName, $parentSubTxnId, $mySubTxnId, $finalOpStatus); if ($subTransactionReturnValue["result"] != 0 ) { $logger->log_error("Got error while updating subTxn: ".$subTransactionReturnValue["error"]); print json_encode($subTransactionReturnValue); return; } } ?>