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
2b2541fd
Commit
2b2541fd
authored
Jul 03, 2019
by
liuyuhang
Committed by
vipwzw
Jul 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mod for del
parent
fbd9699d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
kvmvcc_mavl.go
plugin/store/kvmvccmavl/kvmvcc_mavl.go
+1
-1
kvmvccdb.go
plugin/store/kvmvccmavl/kvmvccdb.go
+3
-3
No files found.
plugin/store/kvmvccmavl/kvmvcc_mavl.go
View file @
2b2541fd
...
@@ -333,7 +333,7 @@ func (kvmMavls *KVmMavlStore) Del(req *types.StoreDel) ([]byte, error) {
...
@@ -333,7 +333,7 @@ func (kvmMavls *KVmMavlStore) Del(req *types.StoreDel) ([]byte, error) {
if
err
!=
nil
{
if
err
!=
nil
{
return
hash
,
err
return
hash
,
err
}
}
_
,
err
=
kvmMavls
.
KVMVCCStore
.
Del
(
req
)
hash
,
err
=
kvmMavls
.
KVMVCCStore
.
Del
(
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
hash
,
err
return
hash
,
err
}
}
...
...
plugin/store/kvmvccmavl/kvmvccdb.go
View file @
2b2541fd
...
@@ -238,7 +238,7 @@ func (mvccs *KVMVCCStore) ProcEvent(msg queue.Message) {
...
@@ -238,7 +238,7 @@ func (mvccs *KVMVCCStore) ProcEvent(msg queue.Message) {
// Del set kvs to nil with StateHash
// Del set kvs to nil with StateHash
func
(
mvccs
*
KVMVCCStore
)
Del
(
req
*
types
.
StoreDel
)
([]
byte
,
error
)
{
func
(
mvccs
*
KVMVCCStore
)
Del
(
req
*
types
.
StoreDel
)
([]
byte
,
error
)
{
kvset
,
err
:=
mvccs
.
mvcc
.
DelMVCC
(
req
.
StateHash
,
req
.
Height
,
tru
e
)
kvset
,
err
:=
mvccs
.
mvcc
.
DelMVCC
(
req
.
StateHash
,
req
.
Height
,
fals
e
)
if
err
!=
nil
{
if
err
!=
nil
{
kmlog
.
Error
(
"store kvmvcc del"
,
"err"
,
err
)
kmlog
.
Error
(
"store kvmvcc del"
,
"err"
,
err
)
return
nil
,
err
return
nil
,
err
...
@@ -295,12 +295,12 @@ func (mvccs *KVMVCCStore) checkVersion(height int64) ([]*types.KeyValue, error)
...
@@ -295,12 +295,12 @@ func (mvccs *KVMVCCStore) checkVersion(height int64) ([]*types.KeyValue, error)
for
i
:=
maxVersion
;
i
>=
height
;
i
--
{
for
i
:=
maxVersion
;
i
>=
height
;
i
--
{
hash
,
err
:=
mvccs
.
mvcc
.
GetVersionHash
(
i
)
hash
,
err
:=
mvccs
.
mvcc
.
GetVersionHash
(
i
)
if
err
!=
nil
{
if
err
!=
nil
{
kmlog
.
Warn
(
"store kvmvcc checkVersion GetVersionHash failed"
,
"height"
,
i
,
"maxVersion"
,
maxVersion
)
kmlog
.
Debug
(
"store kvmvcc checkVersion GetVersionHash failed"
,
"height"
,
i
,
"maxVersion"
,
maxVersion
)
continue
continue
}
}
kvlist
,
err
:=
mvccs
.
mvcc
.
DelMVCC
(
hash
,
i
,
false
)
kvlist
,
err
:=
mvccs
.
mvcc
.
DelMVCC
(
hash
,
i
,
false
)
if
err
!=
nil
{
if
err
!=
nil
{
kmlog
.
Warn
(
"store kvmvcc checkVersion DelMVCC failed"
,
"height"
,
i
,
"err"
,
err
)
kmlog
.
Debug
(
"store kvmvcc checkVersion DelMVCC failed"
,
"height"
,
i
,
"err"
,
err
)
continue
continue
}
}
kvset
=
append
(
kvset
,
kvlist
...
)
kvset
=
append
(
kvset
,
kvlist
...
)
...
...
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