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
31fdf4e8
Commit
31fdf4e8
authored
Jan 10, 2020
by
linj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log key
parent
e831f857
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
localdb_v1.go
plugin/dapp/trade/executor/localdb_v1.go
+2
-0
No files found.
plugin/dapp/trade/executor/localdb_v1.go
View file @
31fdf4e8
...
@@ -124,6 +124,7 @@ func delOnePrefixLimit(localDB dbm.DB, prefix string, total int) (allDeleted boo
...
@@ -124,6 +124,7 @@ func delOnePrefixLimit(localDB dbm.DB, prefix string, total int) (allDeleted boo
tradelog
.
Error
(
"delOnePrefixLimit delete key not match prefix"
,
"prefix"
,
prefix
,
"key"
,
string
(
keys
[
i
]))
tradelog
.
Error
(
"delOnePrefixLimit delete key not match prefix"
,
"prefix"
,
prefix
,
"key"
,
string
(
keys
[
i
]))
panic
(
"bug: "
+
"delOnePrefixLimit delete key not match prefix: "
+
prefix
+
" "
+
string
(
keys
[
i
]))
panic
(
"bug: "
+
"delOnePrefixLimit delete key not match prefix: "
+
prefix
+
" "
+
string
(
keys
[
i
]))
}
}
tradelog
.
Debug
(
"delOnePrefixLimit"
,
"KEY"
,
string
(
keys
[
i
]))
batch
.
Delete
(
keys
[
i
])
batch
.
Delete
(
keys
[
i
])
}
}
err
=
batch
.
Write
()
err
=
batch
.
Write
()
...
@@ -188,6 +189,7 @@ func upgradeOrderLimit(kvdb dbm.KVDB, total int) (allDeleted bool, err error) {
...
@@ -188,6 +189,7 @@ func upgradeOrderLimit(kvdb dbm.KVDB, total int) (allDeleted bool, err error) {
kvdb
.
Begin
()
kvdb
.
Begin
()
for
_
,
kv
:=
range
kvs
{
for
_
,
kv
:=
range
kvs
{
tradelog
.
Debug
(
"upgradeOrderLimit"
,
"KEY"
,
string
(
kv
.
GetKey
()))
err
=
kvdb
.
Set
(
kv
.
GetKey
(),
kv
.
GetValue
())
err
=
kvdb
.
Set
(
kv
.
GetKey
(),
kv
.
GetValue
())
if
err
!=
nil
{
if
err
!=
nil
{
break
break
...
...
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