Browse Source

refactor

pull/800/head
Chris Lu 6 years ago
parent
commit
ec5a305624
  1. 4
      weed/storage/needle/compact_map.go
  2. 4
      weed/storage/needle/needle_value.go

4
weed/storage/needle/compact_map.go

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

4
weed/storage/needle/needle_value.go

@ -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…
Cancel
Save