1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-05 08:36:55 +02:00
This commit is contained in:
Chris Lu 2018-12-09 00:12:37 -08:00
parent 9d3be33e5c
commit ec5a305624
2 changed files with 4 additions and 4 deletions

View file

@ -5,6 +5,10 @@ import (
"sync" "sync"
) )
const (
batch = 100000
)
type CompactSection struct { type CompactSection struct {
sync.RWMutex sync.RWMutex
values []NeedleValue values []NeedleValue

View file

@ -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