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
4afa4baf
Commit
4afa4baf
authored
Sep 01, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5e9a3cb7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
go/neo/client/client.go
go/neo/client/client.go
+2
-1
go/neo/server/cluster_test.go
go/neo/server/cluster_test.go
+1
-1
go/xcommon/tracing/tracing.go
go/xcommon/tracing/tracing.go
+0
-3
No files found.
go/neo/client/client.go
View file @
4afa4baf
...
...
@@ -400,12 +400,13 @@ func (c *Client) Load(ctx context.Context, xid zodb.Xid) (data []byte, serial zo
return
nil
,
0
,
err
// XXX err context
}
data
=
resp
.
Data
checksum
:=
sha1
.
Sum
(
data
)
if
checksum
!=
resp
.
Checksum
{
return
nil
,
0
,
fmt
.
Errorf
(
"data corrupt: checksum mismatch"
)
}
data
=
resp
.
Data
if
resp
.
Compression
{
data
,
err
=
decompress
(
resp
.
Data
,
make
([]
byte
,
0
,
len
(
resp
.
Data
)))
if
err
!=
nil
{
...
...
go/neo/server/cluster_test.go
View file @
4afa4baf
...
...
@@ -471,7 +471,7 @@ func TestMasterStorage(t *testing.T) {
Checksum
:
sha1
.
Sum
(
data1
),
}))
println
(
"444"
)
xwait
(
wg
)
// C loads every other {<,=}serial:oid - established link is reused
ziter
:=
zstor
.
Iterate
(
0
,
zodb
.
TidMax
)
...
...
go/xcommon/tracing/tracing.go
View file @
4afa4baf
...
...
@@ -201,8 +201,6 @@ import (
"sync"
"sync/atomic"
"unsafe"
"fmt"
)
// big tracing lock
...
...
@@ -337,7 +335,6 @@ func (pg *ProbeGroup) Done() {
defer
Unlock
()
for
_
,
p
:=
range
pg
.
probev
{
fmt
.
Printf
(
"detaching %#v
\n
"
,
p
)
p
.
Detach
()
}
pg
.
probev
=
nil
...
...
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