Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
443e0199
Commit
443e0199
authored
Sep 14, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a5ac1652
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
go/neo/client/client.go
go/neo/client/client.go
+1
-4
go/neo/server/cluster_test.go
go/neo/server/cluster_test.go
+4
-4
go/neo/server/ztrace_test.go
go/neo/server/ztrace_test.go
+5
-5
No files found.
go/neo/client/client.go
View file @
443e0199
...
@@ -281,10 +281,7 @@ func (c *Client) recvMaster(ctx context.Context, mlink *neo.NodeLink) (err error
...
@@ -281,10 +281,7 @@ func (c *Client) recvMaster(ctx context.Context, mlink *neo.NodeLink) (err error
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
err
=
req
.
Close
()
req
.
Close
()
if
err
!=
nil
{
return
err
}
c
.
node
.
StateMu
.
Lock
()
c
.
node
.
StateMu
.
Lock
()
...
...
go/neo/server/cluster_test.go
View file @
443e0199
...
@@ -90,8 +90,8 @@ type traceNeoSend struct {
...
@@ -90,8 +90,8 @@ type traceNeoSend struct {
ConnID
uint32
ConnID
uint32
Msg
neo
.
Msg
Msg
neo
.
Msg
}
}
func
(
t
*
MyTracer
)
traceNeo
ConnSendPre
(
c
*
neo
.
Conn
,
msg
neo
.
Msg
)
{
func
(
t
*
MyTracer
)
traceNeo
MsgSendPre
(
l
*
neo
.
NodeLink
,
connID
uint32
,
msg
neo
.
Msg
)
{
t
.
Trace1
(
&
traceNeoSend
{
c
.
Link
()
.
LocalAddr
(),
c
.
Link
()
.
RemoteAddr
(),
c
.
ConnID
()
,
msg
})
t
.
Trace1
(
&
traceNeoSend
{
l
.
LocalAddr
(),
l
.
RemoteAddr
(),
connID
,
msg
})
}
}
// cluster state changed
// cluster state changed
...
@@ -160,8 +160,8 @@ func TestMasterStorage(t *testing.T) {
...
@@ -160,8 +160,8 @@ func TestMasterStorage(t *testing.T) {
defer
pg
.
Done
()
defer
pg
.
Done
()
tracing
.
Lock
()
tracing
.
Lock
()
//neo_trace
ConnRecv_Attach(pg, tracer.traceNeoConn
Recv)
//neo_trace
MsgRecv_Attach(pg, tracer.traceNeoMsg
Recv)
neo_trace
ConnSendPre_Attach
(
pg
,
tracer
.
traceNeoConn
SendPre
)
neo_trace
MsgSendPre_Attach
(
pg
,
tracer
.
traceNeoMsg
SendPre
)
neo_traceClusterStateChanged_Attach
(
pg
,
tracer
.
traceClusterState
)
neo_traceClusterStateChanged_Attach
(
pg
,
tracer
.
traceClusterState
)
neo_traceNodeChanged_Attach
(
pg
,
tracer
.
traceNode
)
neo_traceNodeChanged_Attach
(
pg
,
tracer
.
traceNode
)
traceMasterStartReady_Attach
(
pg
,
tracer
.
traceMasterStartReady
)
traceMasterStartReady_Attach
(
pg
,
tracer
.
traceMasterStartReady
)
...
...
go/neo/server/ztrace_test.go
View file @
443e0199
...
@@ -13,7 +13,7 @@ import (
...
@@ -13,7 +13,7 @@ import (
// traceimport: "lab.nexedi.com/kirr/neo/go/neo"
// traceimport: "lab.nexedi.com/kirr/neo/go/neo"
// rerun "gotrace gen" if you see link failure ↓↓↓
// rerun "gotrace gen" if you see link failure ↓↓↓
//go:linkname neo_trace_exporthash lab.nexedi.com/kirr/neo/go/neo._trace_exporthash_
ab325b43be064a06d1c80db96d5bf50678b5b03
7
//go:linkname neo_trace_exporthash lab.nexedi.com/kirr/neo/go/neo._trace_exporthash_
933f43c04bbb1566c5d1e9ea518f9ed6e0f147a
7
func
neo_trace_exporthash
()
func
neo_trace_exporthash
()
func
init
()
{
neo_trace_exporthash
()
}
func
init
()
{
neo_trace_exporthash
()
}
...
@@ -21,11 +21,11 @@ func init() { neo_trace_exporthash() }
...
@@ -21,11 +21,11 @@ func init() { neo_trace_exporthash() }
//go:linkname neo_traceClusterStateChanged_Attach lab.nexedi.com/kirr/neo/go/neo.traceClusterStateChanged_Attach
//go:linkname neo_traceClusterStateChanged_Attach lab.nexedi.com/kirr/neo/go/neo.traceClusterStateChanged_Attach
func
neo_traceClusterStateChanged_Attach
(
*
tracing
.
ProbeGroup
,
func
(
cs
*
neo
.
ClusterState
))
*
tracing
.
Probe
func
neo_traceClusterStateChanged_Attach
(
*
tracing
.
ProbeGroup
,
func
(
cs
*
neo
.
ClusterState
))
*
tracing
.
Probe
//go:linkname neo_trace
ConnRecv_Attach lab.nexedi.com/kirr/neo/go/neo.traceConn
Recv_Attach
//go:linkname neo_trace
MsgRecv_Attach lab.nexedi.com/kirr/neo/go/neo.traceMsg
Recv_Attach
func
neo_trace
Conn
Recv_Attach
(
*
tracing
.
ProbeGroup
,
func
(
c
*
neo
.
Conn
,
msg
neo
.
Msg
))
*
tracing
.
Probe
func
neo_trace
Msg
Recv_Attach
(
*
tracing
.
ProbeGroup
,
func
(
c
*
neo
.
Conn
,
msg
neo
.
Msg
))
*
tracing
.
Probe
//go:linkname neo_trace
ConnSendPre_Attach lab.nexedi.com/kirr/neo/go/neo.traceConn
SendPre_Attach
//go:linkname neo_trace
MsgSendPre_Attach lab.nexedi.com/kirr/neo/go/neo.traceMsg
SendPre_Attach
func
neo_trace
ConnSendPre_Attach
(
*
tracing
.
ProbeGroup
,
func
(
c
*
neo
.
Conn
,
msg
neo
.
Msg
))
*
tracing
.
Probe
func
neo_trace
MsgSendPre_Attach
(
*
tracing
.
ProbeGroup
,
func
(
l
*
neo
.
NodeLink
,
connId
uint32
,
msg
neo
.
Msg
))
*
tracing
.
Probe
//go:linkname neo_traceNodeChanged_Attach lab.nexedi.com/kirr/neo/go/neo.traceNodeChanged_Attach
//go:linkname neo_traceNodeChanged_Attach lab.nexedi.com/kirr/neo/go/neo.traceNodeChanged_Attach
func
neo_traceNodeChanged_Attach
(
*
tracing
.
ProbeGroup
,
func
(
nt
*
neo
.
NodeTable
,
n
*
neo
.
Node
))
*
tracing
.
Probe
func
neo_traceNodeChanged_Attach
(
*
tracing
.
ProbeGroup
,
func
(
nt
*
neo
.
NodeTable
,
n
*
neo
.
Node
))
*
tracing
.
Probe
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