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
aa69a170
Commit
aa69a170
authored
Jun 22, 2019
by
liuyuhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify linter
parent
be90fa42
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
3 deletions
+2
-3
kvmvccdb.go
plugin/store/kvmvcc/kvmvccdb.go
+0
-1
db.go
vendor/github.com/33cn/chain33/common/db/db.go
+1
-0
go_level_db.go
vendor/github.com/33cn/chain33/common/db/go_level_db.go
+1
-1
prune.go
vendor/github.com/33cn/chain33/system/store/mavl/db/prune.go
+0
-1
No files found.
plugin/store/kvmvcc/kvmvccdb.go
View file @
aa69a170
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
package
kvmvccdb
package
kvmvccdb
import
(
import
(
"fmt"
"github.com/33cn/chain33/common"
"github.com/33cn/chain33/common"
dbm
"github.com/33cn/chain33/common/db"
dbm
"github.com/33cn/chain33/common/db"
...
...
vendor/github.com/33cn/chain33/common/db/db.go
View file @
aa69a170
...
@@ -96,6 +96,7 @@ type Batch interface {
...
@@ -96,6 +96,7 @@ type Batch interface {
Reset
()
// Reset resets the batch for reuse
Reset
()
// Reset resets the batch for reuse
}
}
// MustWrite must write correct
func
MustWrite
(
batch
Batch
)
{
func
MustWrite
(
batch
Batch
)
{
err
:=
batch
.
Write
()
err
:=
batch
.
Write
()
if
err
!=
nil
{
if
err
!=
nil
{
...
...
vendor/github.com/33cn/chain33/common/db/go_level_db.go
View file @
aa69a170
...
@@ -268,7 +268,7 @@ func (mBatch *goLevelDBBatch) Delete(key []byte) {
...
@@ -268,7 +268,7 @@ func (mBatch *goLevelDBBatch) Delete(key []byte) {
func
(
mBatch
*
goLevelDBBatch
)
Write
()
error
{
func
(
mBatch
*
goLevelDBBatch
)
Write
()
error
{
if
mBatch
.
batch
.
Len
()
==
0
{
if
mBatch
.
batch
.
Len
()
==
0
{
llog
.
Info
(
"Write"
,
"len"
,
len
)
llog
.
Info
(
"Write"
,
"len"
,
mBatch
.
batch
.
Len
()
)
return
nil
return
nil
}
}
err
:=
mBatch
.
db
.
db
.
Write
(
mBatch
.
batch
,
mBatch
.
wop
)
err
:=
mBatch
.
db
.
db
.
Write
(
mBatch
.
batch
,
mBatch
.
wop
)
...
...
vendor/github.com/33cn/chain33/system/store/mavl/db/prune.go
View file @
aa69a170
...
@@ -366,7 +366,6 @@ func deleteOldNode(db dbm.DB, mp map[string][]hashData, curHeight int64, batch d
...
@@ -366,7 +366,6 @@ func deleteOldNode(db dbm.DB, mp map[string][]hashData, curHeight int64, batch d
if
len
(
mp
)
==
0
{
if
len
(
mp
)
==
0
{
return
return
}
}
var
err
error
batch
.
Reset
()
batch
.
Reset
()
for
key
,
vals
:=
range
mp
{
for
key
,
vals
:=
range
mp
{
if
len
(
vals
)
>
1
{
if
len
(
vals
)
>
1
{
...
...
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