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
ff908946
Unverified
Commit
ff908946
authored
Jul 29, 2020
by
meowsbits
Committed by
GitHub
Jul 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/rawdb: convert some comments to godoc convention (#21384)
parent
9e04c5ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
freezer.go
core/rawdb/freezer.go
+2
-2
No files found.
core/rawdb/freezer.go
View file @
ff908946
...
...
@@ -221,7 +221,7 @@ func (f *freezer) AppendAncient(number uint64, hash, header, body, receipts, td
return
nil
}
// Truncate discards any recent data above the provided threshold number.
// Truncate
Ancients
discards any recent data above the provided threshold number.
func
(
f
*
freezer
)
TruncateAncients
(
items
uint64
)
error
{
if
atomic
.
LoadUint64
(
&
f
.
frozen
)
<=
items
{
return
nil
...
...
@@ -235,7 +235,7 @@ func (f *freezer) TruncateAncients(items uint64) error {
return
nil
}
//
s
ync flushes all data tables to disk.
//
S
ync flushes all data tables to disk.
func
(
f
*
freezer
)
Sync
()
error
{
var
errs
[]
error
for
_
,
table
:=
range
f
.
tables
{
...
...
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