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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
395e91bb
Commit
395e91bb
authored
Dec 27, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f4f787ee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
t/neo/marshal.go
t/neo/marshal.go
+32
-0
t/neo/proto.go
t/neo/proto.go
+1
-1
No files found.
t/neo/marshal.go
View file @
395e91bb
...
@@ -272,3 +272,35 @@ func (p *PartitionChanges) NEODecode(data []byte) (int, error) {
...
@@ -272,3 +272,35 @@ func (p *PartitionChanges) NEODecode(data []byte) (int, error) {
}
}
return
0
/* + TODO variable part */
,
nil
return
0
/* + TODO variable part */
,
nil
}
}
func
(
p
*
StartOperation
)
NEODecode
(
data
[]
byte
)
(
int
,
error
)
{
p
.
Backup
=
bool
((
data
[
0
:
])[
0
])
return
1
/* + TODO variable part */
,
nil
}
func
(
p
*
StopOperation
)
NEODecode
(
data
[]
byte
)
(
int
,
error
)
{
return
0
/* + TODO variable part */
,
nil
}
func
(
p
*
UnfinishedTransactions
)
NEODecode
(
data
[]
byte
)
(
int
,
error
)
{
return
0
/* + TODO variable part */
,
nil
}
func
(
p
*
AnswerUnfinishedTransactions
)
NEODecode
(
data
[]
byte
)
(
int
,
error
)
{
p
.
MaxTID
=
BigEndian
.
Uint64
(
data
[
0
:
])
{
l
:=
BigEndian
.
Uint32
(
data
[
8
:
])
data
=
data
[
12
:
]
p
.
TidList
=
make
([]
struct
{
UnfinishedTID
neo
.
Tid
},
l
)
for
i
:=
0
;
i
<
l
;
i
++
{
a
:=
&
p
.
TidList
[
i
]
a
.
UnfinishedTID
=
BigEndian
.
Uint64
(
data
[
0
:
])
data
=
data
[
8
:
]
}
}
return
0
/* + TODO variable part */
,
nil
}
func
(
p
*
LockedTransactions
)
NEODecode
(
data
[]
byte
)
(
int
,
error
)
{
return
0
/* + TODO variable part */
,
nil
}
t/neo/proto.go
View file @
395e91bb
...
@@ -298,7 +298,6 @@ type PartitionChanges struct {
...
@@ -298,7 +298,6 @@ type PartitionChanges struct {
}
}
}
}
/*
// Tell a storage nodes to start an operation. Until a storage node receives
// Tell a storage nodes to start an operation. Until a storage node receives
// this message, it must not serve client nodes. PM -> S.
// this message, it must not serve client nodes. PM -> S.
type
StartOperation
struct
{
type
StartOperation
struct
{
...
@@ -328,6 +327,7 @@ type AnswerUnfinishedTransactions struct {
...
@@ -328,6 +327,7 @@ type AnswerUnfinishedTransactions struct {
// Answer locked transactions S -> PM.
// Answer locked transactions S -> PM.
type
LockedTransactions
struct
{
type
LockedTransactions
struct
{
}
}
/*
type AnswerLockedTransactions struct {
type AnswerLockedTransactions struct {
TidDict map[Tid]Tid // ttid -> tid
TidDict map[Tid]Tid // ttid -> tid
...
...
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