Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
张蕾
Geth-Modification
Commits
57a65f00
Unverified
Commit
57a65f00
authored
Sep 15, 2022
by
Amir Hossein
Committed by
GitHub
Sep 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trie: handle more batch commit errors in Database (#25674)
parent
a89b7add
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
database.go
trie/database.go
+7
-3
No files found.
trie/database.go
View file @
57a65f00
...
...
@@ -662,8 +662,9 @@ func (db *Database) Commit(node common.Hash, report bool, callback func(common.H
// Uncache any leftovers in the last batch
db
.
lock
.
Lock
()
defer
db
.
lock
.
Unlock
()
batch
.
Replay
(
uncacher
)
if
err
:=
batch
.
Replay
(
uncacher
);
err
!=
nil
{
return
err
}
batch
.
Reset
()
// Reset the storage counters and bumped metrics
...
...
@@ -711,9 +712,12 @@ func (db *Database) commit(hash common.Hash, batch ethdb.Batch, uncacher *cleane
return
err
}
db
.
lock
.
Lock
()
batch
.
Replay
(
uncacher
)
err
:=
batch
.
Replay
(
uncacher
)
batch
.
Reset
()
db
.
lock
.
Unlock
()
if
err
!=
nil
{
return
err
}
}
return
nil
}
...
...
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