Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
process
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
process
Commits
65fe7d2f
Commit
65fe7d2f
authored
Mar 07, 2025
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update package
parent
c02e9e3c
Pipeline
#833
canceled with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
19 deletions
+21
-19
go.mod
go.mod
+2
-0
go.sum
go.sum
+2
-2
leveldb.go
leveldb/leveldb.go
+17
-17
No files found.
go.mod
View file @
65fe7d2f
...
@@ -58,3 +58,5 @@ require (
...
@@ -58,3 +58,5 @@ require (
)
)
replace github.com/exchain/go-exchain v0.0.1 => ../nebula/
replace github.com/exchain/go-exchain v0.0.1 => ../nebula/
replace github.com/ethereum/go-ethereum => github.com/ethereum-optimism/op-geth v1.101412.0-rc.1
go.sum
View file @
65fe7d2f
...
@@ -21,8 +21,8 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 h1:rpfIENRNNilwHwZeG5+P150SMrnN
...
@@ -21,8 +21,8 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 h1:rpfIENRNNilwHwZeG5+P150SMrnN
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0=
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0=
github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ=
github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ=
github.com/ethereum
/go-ethereum v1.15.0 h1:LLb2jCPsbJZcB4INw+E/MgzUX5wlR6SdwXcv09/1ME4
=
github.com/ethereum
-optimism/op-geth v1.101412.0-rc.1 h1:Un6Cnr4QkQx+s/Rp1iWvsBD+lIE1xZd8RKIKxGmChTk
=
github.com/ethereum
/go-ethereum v1.15.0/go.mod h1:4q+4t48P2C03sjqGvTXix5lEOplf5dz4CTosbjt5tGs
=
github.com/ethereum
-optimism/op-geth v1.101412.0-rc.1/go.mod h1:lRTd6c45e98fA9Cm0c8SrtqiSNYtxUBBZo3ofJbQh5I
=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU=
github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU=
...
...
leveldb/leveldb.go
View file @
65fe7d2f
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !js
&& !wasip1
//go:build !js
// +build !js
,!wasip1
// +build !js
// Package leveldb implements the key-value database layer based on LevelDB.
// Package leveldb implements the key-value database layer based on LevelDB.
package
leveldb
package
leveldb
...
@@ -62,21 +62,21 @@ type Database struct {
...
@@ -62,21 +62,21 @@ type Database struct {
fn
string
// filename for reporting
fn
string
// filename for reporting
db
*
leveldb
.
DB
// LevelDB instance
db
*
leveldb
.
DB
// LevelDB instance
compTimeMeter
*
metrics
.
Meter
// Meter for measuring the total time spent in database compaction
compTimeMeter
metrics
.
Meter
// Meter for measuring the total time spent in database compaction
compReadMeter
*
metrics
.
Meter
// Meter for measuring the data read during compaction
compReadMeter
metrics
.
Meter
// Meter for measuring the data read during compaction
compWriteMeter
*
metrics
.
Meter
// Meter for measuring the data written during compaction
compWriteMeter
metrics
.
Meter
// Meter for measuring the data written during compaction
writeDelayNMeter
*
metrics
.
Meter
// Meter for measuring the write delay number due to database compaction
writeDelayNMeter
metrics
.
Meter
// Meter for measuring the write delay number due to database compaction
writeDelayMeter
*
metrics
.
Meter
// Meter for measuring the write delay duration due to database compaction
writeDelayMeter
metrics
.
Meter
// Meter for measuring the write delay duration due to database compaction
diskSizeGauge
*
metrics
.
Gauge
// Gauge for tracking the size of all the levels in the database
diskSizeGauge
metrics
.
Gauge
// Gauge for tracking the size of all the levels in the database
diskReadMeter
*
metrics
.
Meter
// Meter for measuring the effective amount of data read
diskReadMeter
metrics
.
Meter
// Meter for measuring the effective amount of data read
diskWriteMeter
*
metrics
.
Meter
// Meter for measuring the effective amount of data written
diskWriteMeter
metrics
.
Meter
// Meter for measuring the effective amount of data written
memCompGauge
*
metrics
.
Gauge
// Gauge for tracking the number of memory compaction
memCompGauge
metrics
.
Gauge
// Gauge for tracking the number of memory compaction
level0CompGauge
*
metrics
.
Gauge
// Gauge for tracking the number of table compaction in level0
level0CompGauge
metrics
.
Gauge
// Gauge for tracking the number of table compaction in level0
nonlevel0CompGauge
*
metrics
.
Gauge
// Gauge for tracking the number of table compaction in non0 level
nonlevel0CompGauge
metrics
.
Gauge
// Gauge for tracking the number of table compaction in non0 level
seekCompGauge
*
metrics
.
Gauge
// Gauge for tracking the number of table compaction caused by read opt
seekCompGauge
metrics
.
Gauge
// Gauge for tracking the number of table compaction caused by read opt
manualMemAllocGauge
*
metrics
.
Gauge
// Gauge to track the amount of memory that has been manually allocated (not a part of runtime/GC)
manualMemAllocGauge
metrics
.
Gauge
// Gauge to track the amount of memory that has been manually allocated (not a part of runtime/GC)
levelsGauge
[]
*
metrics
.
Gauge
// Gauge for tracking the number of tables in levels
levelsGauge
[]
metrics
.
Gauge
// Gauge for tracking the number of tables in levels
quitLock
sync
.
Mutex
// Mutex protecting the quit channel access
quitLock
sync
.
Mutex
// Mutex protecting the quit channel access
quitChan
chan
chan
error
// Quit channel to stop the metrics collection before closing the database
quitChan
chan
chan
error
// Quit channel to stop the metrics collection before closing the database
...
...
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