This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Fix #2017, support debug mode for master server, standby server, agent #2020
Merged
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4c2e4ae
support debug mode for smart agent
25cfd38
separate server debug and agent debug
0775a8e
separate debug
c495d48
correct standby
3aec2bc
update ssm-deployment-guide.md
e650ec4
update
a4a2da2
Merge branch 'trunk' into debug
rui-mo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,12 @@ while [ $# != 0 ]; do | |
DEBUG_OPT=$1 | ||
shift | ||
;; | ||
"--help" | "-h") | ||
echo -e "--help -h Show this usage information\n\ | ||
--config Specify or overwrite an configure option.\n\ | ||
-format Format the configured database." | ||
shift | ||
;; | ||
*) | ||
SMART_VARGS+=" $1" | ||
shift | ||
|
@@ -80,7 +86,7 @@ if [ x"${SMARTSERVERS}" != x"" ]; then | |
OTHER_MASTERS=${SMARTSERVERS/${FIRST_MASTER} /} | ||
if [ x"${DEBUG_OPT}" != x"" ]; then | ||
echo | ||
echo " Please attache to SmartServer@${FIRST_MASTER} and resume the execution first!!" | ||
echo " Please attach to SmartServer@${FIRST_MASTER} and resume the execution first!!" | ||
read -n1 -s -p " And then hit any key to continue ... " | ||
echo -e "\n\nStarting other SmartServers on [${OTHER_MASTERS}]" | ||
sleep 1 | ||
|
@@ -93,7 +99,8 @@ if [ x"${SMARTSERVERS}" != x"" ]; then | |
--config "${SMART_CONF_DIR}" \ | ||
--hosts "${OTHER_MASTERS}" --hostsend \ | ||
--daemon start \ | ||
smartserver $SMART_VARGS_STANDBY | ||
smartserver $ | ||
SMART_VARGS_STANDBY | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems that there is no need to put SMART_VARGS_STANDY on a new line. |
||
fi | ||
else | ||
echo "ERROR: No SmartServers configured in 'servers'." | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this statement to the outside of while loop. Please test again after that.