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
98607d8f
Commit
98607d8f
authored
May 06, 2019
by
33cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update kvmvcc_mavl.go
parent
03f0d5cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
kvmvcc_mavl.go
plugin/store/kvmvccmavl/kvmvcc_mavl.go
+2
-2
No files found.
plugin/store/kvmvccmavl/kvmvcc_mavl.go
View file @
98607d8f
...
@@ -61,7 +61,7 @@ func DisableLog() {
...
@@ -61,7 +61,7 @@ func DisableLog() {
func
init
()
{
func
init
()
{
drivers
.
Reg
(
"kvmvccmavl"
,
New
)
drivers
.
Reg
(
"kvmvccmavl"
,
New
)
types
.
RegisterDappFork
(
"kvmvccmavl"
,
"ForkKvmvccmavl"
,
types
.
MaxHeight
)
types
.
RegisterDappFork
(
"
store-
kvmvccmavl"
,
"ForkKvmvccmavl"
,
types
.
MaxHeight
)
}
}
// KVmMavlStore provide kvmvcc and mavl store interface implementation
// KVmMavlStore provide kvmvcc and mavl store interface implementation
...
@@ -137,7 +137,7 @@ func New(cfg *types.Store, sub []byte) queue.Module {
...
@@ -137,7 +137,7 @@ func New(cfg *types.Store, sub []byte) queue.Module {
// 查询是否是删除裁剪版mavl
// 查询是否是删除裁剪版mavl
isPrunedMavl
=
isPrunedMavlDB
(
bs
.
GetDB
())
isPrunedMavl
=
isPrunedMavlDB
(
bs
.
GetDB
())
// 读取fork高度
// 读取fork高度
kvmvccMavlFork
=
types
.
GetDappFork
(
"kvmvccmavl"
,
"ForkKvmvccmavl"
)
kvmvccMavlFork
=
types
.
GetDappFork
(
"
store-
kvmvccmavl"
,
"ForkKvmvccmavl"
)
delMavlDataHeight
=
kvmvccMavlFork
+
10000
delMavlDataHeight
=
kvmvccMavlFork
+
10000
bs
.
SetChild
(
kvms
)
bs
.
SetChild
(
kvms
)
return
kvms
return
kvms
...
...
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