Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
272cfa67
Commit
272cfa67
authored
Dec 14, 2021
by
harrylee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a bug for respose ibtp update index
parent
4264bcf1
Pipeline
#8367
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
brokerdb.go
plugin/dapp/broker/executor/brokerdb.go
+2
-2
No files found.
plugin/dapp/broker/executor/brokerdb.go
View file @
272cfa67
...
...
@@ -109,11 +109,11 @@ func (b *BrokerDB) updateIndex(payload *brokertypes.UpdateIndex) (*types.Receipt
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"broker not init!"
)
}
idx
:=
meta
.
Meta
[
genServicePair
(
payload
.
SrcServiceID
,
payload
.
Dst
ServiceID
)]
idx
:=
meta
.
Meta
[
genServicePair
(
payload
.
DstServiceID
,
payload
.
Src
ServiceID
)]
if
payload
.
SequenceNum
!=
idx
+
1
{
return
nil
,
fmt
.
Errorf
(
"incorrect index, expect %d"
,
idx
+
1
)
}
meta
.
Meta
[
genServicePair
(
payload
.
SrcServiceID
,
payload
.
Dst
ServiceID
)]
=
idx
+
1
meta
.
Meta
[
genServicePair
(
payload
.
DstServiceID
,
payload
.
Src
ServiceID
)]
=
idx
+
1
kvset
:=
b
.
GetMetaKVSet
(
payload
.
ReqType
,
meta
)
// 跨出交易不需要确认是否成功
receipt
.
KV
=
append
(
receipt
.
KV
,
kvset
...
)
...
...
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