mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
refactor
This commit is contained in:
parent
9d3be33e5c
commit
ec5a305624
|
@ -5,6 +5,10 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
batch = 100000
|
||||||
|
)
|
||||||
|
|
||||||
type CompactSection struct {
|
type CompactSection struct {
|
||||||
sync.RWMutex
|
sync.RWMutex
|
||||||
values []NeedleValue
|
values []NeedleValue
|
||||||
|
|
|
@ -5,10 +5,6 @@ import (
|
||||||
"github.com/google/btree"
|
"github.com/google/btree"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
batch = 100000
|
|
||||||
)
|
|
||||||
|
|
||||||
type NeedleValue struct {
|
type NeedleValue struct {
|
||||||
Key NeedleId
|
Key NeedleId
|
||||||
Offset Offset `comment:"Volume offset"` //since aligned to 8 bytes, range is 4G*8=32G
|
Offset Offset `comment:"Volume offset"` //since aligned to 8 bytes, range is 4G*8=32G
|
||||||
|
|
Loading…
Reference in a new issue