Compare commits

...

2 Commits

Author SHA1 Message Date
Zach Moazeni
7f8c8c7aa9
Drop redundant newline 2019-05-17 13:21:29 -04:00
Zach Moazeni
6e3dbe8361
Upgrade go to go 1.12.x 2019-05-17 11:21:21 -04:00
2 changed files with 8 additions and 9 deletions

View File

@ -144,13 +144,13 @@ func (this *Server) applyServerCommand(command string, writer *bufio.Writer) (pr
switch command { switch command {
case "help": case "help":
{ {
fmt.Fprintln(writer, `available commands: fmt.Fprintf(writer, `available commands:
status # Print a detailed status message status # Print a detailed status message
sup # Print a short status message sup # Print a short status message
coordinates # Print the currently inspected coordinates coordinates # Print the currently inspected coordinates
chunk-size=<newsize> # Set a new chunk-size chunk-size=<newsize> # Set a new chunk-size
dml-batch-size=<newsize> # Set a new dml-batch-size dml-batch-size=<newsize> # Set a new dml-batch-size
nice-ratio=<ratio> # Set a new nice-ratio, immediate sleep after each row-copy operation, float (examples: 0 is aggressive, 0.7 adds 70% runtime, 1.0 doubles runtime, 2.0 triples runtime, ...) nice-ratio=<ratio> # Set a new nice-ratio, immediate sleep after each row-copy operation, float (examples: 0 is aggressive, 0.7 adds 70%% runtime, 1.0 doubles runtime, 2.0 triples runtime, ...)
critical-load=<load> # Set a new set of max-load thresholds critical-load=<load> # Set a new set of max-load thresholds
max-lag-millis=<max-lag> # Set a new replication lag threshold max-lag-millis=<max-lag> # Set a new replication lag threshold
replication-lag-query=<query> # Set a new query that determines replication lag (no quotes) replication-lag-query=<query> # Set a new query that determines replication lag (no quotes)
@ -163,8 +163,7 @@ no-throttle # End forced throttling (other throttling m
unpostpone # Bail out a cut-over postpone; proceed to cut-over unpostpone # Bail out a cut-over postpone; proceed to cut-over
panic # panic and quit without cleanup panic # panic and quit without cleanup
help # This message help # This message
- use '?' (question mark) as argument to get info rather than set. e.g. "max-load=?" will just print out current max-load. - use '?' (question mark) as argument to get info rather than set. e.g. "max-load=?" will just print out current max-load.\n\n`)
`)
} }
case "sup": case "sup":
return ForcePrintStatusOnlyRule, nil return ForcePrintStatusOnlyRule, nil

View File

@ -1,20 +1,20 @@
#!/bin/bash #!/bin/bash
PREFERRED_GO_VERSION=go1.9.2 PREFERRED_GO_VERSION=go1.12.5
SUPPORTED_GO_VERSIONS='go1.[89]' SUPPORTED_GO_VERSIONS='go1.12'
GO_PKG_DARWIN=${PREFERRED_GO_VERSION}.darwin-amd64.pkg GO_PKG_DARWIN=${PREFERRED_GO_VERSION}.darwin-amd64.pkg
GO_PKG_DARWIN_SHA=8b4f6ae6deae1150d2e341d02c247fd18a99af387516540eeb84702ffd76d3a1 GO_PKG_DARWIN_SHA=2501498ad111f33a863ebd80eda0a34d2f6d62bb59fa20d523935e5c1732614f
GO_PKG_LINUX=${PREFERRED_GO_VERSION}.linux-amd64.tar.gz GO_PKG_LINUX=${PREFERRED_GO_VERSION}.linux-amd64.tar.gz
GO_PKG_LINUX_SHA=de874549d9a8d8d8062be05808509c09a88a248e77ec14eb77453530829ac02b GO_PKG_LINUX_SHA=aea86e3c73495f205929cfebba0d63f1382c8ac59be081b6351681415f4063cf
export ROOTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" export ROOTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
cd $ROOTDIR cd $ROOTDIR
# If Go isn't installed globally, setup environment variables for local install. # If Go isn't installed globally, setup environment variables for local install.
if [ -z "$(which go)" ] || [ -z "$(go version | grep "$SUPPORTED_GO_VERSIONS")" ]; then if [ -z "$(which go)" ] || [ -z "$(go version | grep "$SUPPORTED_GO_VERSIONS")" ]; then
GODIR="$ROOTDIR/.vendor/go19" GODIR="$ROOTDIR/.vendor/go1.12"
if [ $(uname -s) = "Darwin" ]; then if [ $(uname -s) = "Darwin" ]; then
export GOROOT="$GODIR/usr/local/go" export GOROOT="$GODIR/usr/local/go"