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
74e9e143
Commit
74e9e143
authored
Jan 15, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
80492be0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
go/neo/proto/proto.go
go/neo/proto/proto.go
+3
-3
go/neo/proto/protogen.go
go/neo/proto/protogen.go
+2
-2
No files found.
go/neo/proto/proto.go
View file @
74e9e143
...
...
@@ -339,7 +339,7 @@ type Checksum [20]byte
// PTid is Partition Table identifier.
//
// Zero value means "invalid id" (<-> None in py.PPTID
) XXX = nil in msgpack
// Zero value means "invalid id" (<-> None in py.PPTID
, nil in msgpack)
type
PTid
uint64
// IdTime represents time of identification.
...
...
@@ -482,8 +482,8 @@ type Recovery struct {
type
AnswerRecovery
struct
{
PTid
BackupTid
zodb
.
Tid
// XXX nil <-> 0
TruncateTid
zodb
.
Tid
// XXX nil <-> 0
BackupTid
zodb
.
Tid
TruncateTid
zodb
.
Tid
}
// Ask the last OID/TID so that a master can initialize its TransactionManager.
...
...
go/neo/proto/protogen.go
View file @
74e9e143
...
...
@@ -1010,7 +1010,7 @@ func (s *sizerM) genBasic(path string, typ *types.Basic, userType types.Type) {
upath
=
fmt
.
Sprintf
(
"%s(%s)"
,
typ
.
Name
(),
upath
)
}
// zodb.Tid and zodb.Oid are encoded as [8]bin XXX or nil
?
// zodb.Tid and zodb.Oid are encoded as [8]bin XXX or nil
for INVALID_{TID_OID}
if
userType
==
zodbTid
||
userType
==
zodbOid
{
s
.
size
.
Add
(
1
+
1
+
8
)
// mbin8 + 8 + [8]data
return
...
...
@@ -1046,7 +1046,7 @@ func (e *encoderM) genBasic(path string, typ *types.Basic, userType types.Type)
upath
=
fmt
.
Sprintf
(
"%s(%s)"
,
typ
.
Name
(),
upath
)
}
// zodb.Tid and zodb.Oid are encoded as [8]bin XXX or nil
?
// zodb.Tid and zodb.Oid are encoded as [8]bin XXX or nil
if
userType
==
zodbTid
||
userType
==
zodbOid
{
e
.
emit
(
"data[%v] = byte(msgpack.Bin8)"
,
e
.
n
);
e
.
n
++
e
.
emit
(
"data[%v] = 8"
,
e
.
n
);
e
.
n
++
...
...
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