Commit 0a79d8c7 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 19dd539e
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
// //
// See COPYING file for full licensing terms. // See COPYING file for full licensing terms.
// See https://www.nexedi.com/licensing for rationale and options. // See https://www.nexedi.com/licensing for rationale and options.
//go:generate stringer -output zproto-str.go -type ErrorCode,NodeType,NodeState proto.go //go:generate stringer -output zproto-str.go -type ErrorCode,ClusterState,NodeType,NodeState proto.go
package neo package neo
// supporting code for types defined in proto.go // supporting code for types defined in proto.go
......
...@@ -36,10 +36,18 @@ Sgo() { ...@@ -36,10 +36,18 @@ Sgo() {
} }
# Apy
# spawn admin
Apy() {
exec -a Apy \
neoadmin --cluster=$cluster --bind=$Abind --masters=$Mbind $@ &
}
# spawn Mpy + Sgo # spawn Mpy + Sgo
Mpy Mpy
sleep 0.2 # XXX temp for debug: so master could start listening and first S connect try is not error sleep 0.2 # XXX temp for debug: so master could start listening and first S connect try is not error
Sgo ../../zodb/storage/fs1/testdata/1.fs Sgo ../../zodb/storage/fs1/testdata/1.fs
Apy
wait wait
// Code generated by "stringer -output zproto-str.go -type ErrorCode,NodeType,NodeState proto.go"; DO NOT EDIT. // Code generated by "stringer -output zproto-str.go -type ErrorCode,ClusterState,NodeType,NodeState proto.go"; DO NOT EDIT.
package neo package neo
...@@ -15,6 +15,17 @@ func (i ErrorCode) String() string { ...@@ -15,6 +15,17 @@ func (i ErrorCode) String() string {
return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]] return _ErrorCode_name[_ErrorCode_index[i]:_ErrorCode_index[i+1]]
} }
const _ClusterState_name = "ClusterRecoveringClusterVerifyingClusterRunningClusterStoppingSTARTING_BACKUPBACKINGUPSTOPPING_BACKUP"
var _ClusterState_index = [...]uint8{0, 17, 33, 47, 62, 77, 86, 101}
func (i ClusterState) String() string {
if i < 0 || i >= ClusterState(len(_ClusterState_index)-1) {
return fmt.Sprintf("ClusterState(%d)", i)
}
return _ClusterState_name[_ClusterState_index[i]:_ClusterState_index[i+1]]
}
const _NodeType_name = "MASTERSTORAGECLIENTADMIN" const _NodeType_name = "MASTERSTORAGECLIENTADMIN"
var _NodeType_index = [...]uint8{0, 6, 13, 19, 24} var _NodeType_index = [...]uint8{0, 6, 13, 19, 24}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment