Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
0a79d8c7
Commit
0a79d8c7
authored
Sep 03, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
19dd539e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
go/neo/proto-misc.go
go/neo/proto-misc.go
+1
-1
go/neo/t/t.sh
go/neo/t/t.sh
+8
-0
go/neo/zproto-str.go
go/neo/zproto-str.go
+12
-1
No files found.
go/neo/proto-misc.go
View file @
0a79d8c7
...
...
@@ -16,7 +16,7 @@
//
// See COPYING file for full licensing terms.
// 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
// supporting code for types defined in proto.go
...
...
go/neo/t/t.sh
View file @
0a79d8c7
...
...
@@ -36,10 +36,18 @@ Sgo() {
}
# Apy
# spawn admin
Apy
()
{
exec
-a
Apy
\
neoadmin
--cluster
=
$cluster
--bind
=
$Abind
--masters
=
$Mbind
$@
&
}
# spawn Mpy + Sgo
Mpy
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
Apy
wait
go/neo/zproto-str.go
View file @
0a79d8c7
// 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
...
...
@@ -15,6 +15,17 @@ func (i ErrorCode) String() string {
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"
var
_NodeType_index
=
[
...
]
uint8
{
0
,
6
,
13
,
19
,
24
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment