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
13acffed
Commit
13acffed
authored
Oct 16, 2019
by
liuyuhang
Committed by
33cn
Oct 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pruneMVCCHeight config
parent
efdef273
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
chain33.toml
chain33.toml
+2
-1
kvmvcc_mavl.go
plugin/store/kvmvccmavl/kvmvcc_mavl.go
+4
-3
No files found.
chain33.toml
View file @
13acffed
...
...
@@ -171,8 +171,9 @@ enableMVCCIter=true
enableMavlPrefix
=
false
enableMVCC
=
false
enableMavlPrune
=
false
pruneMavlHeight
=
10000
enableMVCCPrune
=
false
pruneHeight
=
10000
prune
MVCC
Height
=
10000
# 是否使能mavl数据载入内存
enableMemTree
=
true
# 是否使能mavl叶子节点数据载入内存
...
...
plugin/store/kvmvccmavl/kvmvcc_mavl.go
View file @
13acffed
...
...
@@ -96,8 +96,9 @@ type subConfig struct {
EnableMavlPrefix
bool
`json:"enableMavlPrefix"`
EnableMVCC
bool
`json:"enableMVCC"`
EnableMavlPrune
bool
`json:"enableMavlPrune"`
PruneMavlHeight
int32
`json:"pruneMavlHeight"`
EnableMVCCPrune
bool
`json:"enableMVCCPrune"`
Prune
Height
int32
`json:"prune
Height"`
Prune
MVCCHeight
int32
`json:"pruneMVCC
Height"`
// 是否使能内存树
EnableMemTree
bool
`json:"enableMemTree"`
// 是否使能内存树中叶子节点
...
...
@@ -116,12 +117,12 @@ func New(cfg *types.Store, sub []byte) queue.Module {
types
.
MustDecode
(
sub
,
&
subcfg
)
subKVMVCCcfg
.
EnableMVCCIter
=
subcfg
.
EnableMVCCIter
subKVMVCCcfg
.
EnableMVCCPrune
=
subcfg
.
EnableMVCCPrune
subKVMVCCcfg
.
PruneHeight
=
subcfg
.
PruneHeight
subKVMVCCcfg
.
PruneHeight
=
subcfg
.
Prune
MVCC
Height
subMavlcfg
.
EnableMavlPrefix
=
subcfg
.
EnableMavlPrefix
subMavlcfg
.
EnableMVCC
=
subcfg
.
EnableMVCC
subMavlcfg
.
EnableMavlPrune
=
subcfg
.
EnableMavlPrune
subMavlcfg
.
PruneHeight
=
subcfg
.
PruneHeight
subMavlcfg
.
PruneHeight
=
subcfg
.
Prune
Mavl
Height
subMavlcfg
.
EnableMemTree
=
subcfg
.
EnableMemTree
subMavlcfg
.
EnableMemVal
=
subcfg
.
EnableMemVal
subMavlcfg
.
TkCloseCacheLen
=
subcfg
.
TkCloseCacheLen
...
...
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