supplemental data between compacting and commit compacting
This commit is contained in:
@@ -10,6 +10,11 @@ import (
|
||||
"github.com/chrislusf/seaweedfs/weed/glog"
|
||||
)
|
||||
|
||||
type keyField struct {
|
||||
offset uint32
|
||||
size uint32
|
||||
}
|
||||
|
||||
type Volume struct {
|
||||
Id VolumeId
|
||||
dir string
|
||||
@@ -23,6 +28,9 @@ type Volume struct {
|
||||
|
||||
dataFileAccessLock sync.Mutex
|
||||
lastModifiedTime uint64 //unix time in seconds
|
||||
|
||||
lastCompactingIndexOffset uint64
|
||||
incrementedHasUpdatedIndexEntry map[uint64]keyField
|
||||
}
|
||||
|
||||
func NewVolume(dirname string, collection string, id VolumeId, needleMapKind NeedleMapType, replicaPlacement *ReplicaPlacement, ttl *TTL) (v *Volume, e error) {
|
||||
|
||||
Reference in New Issue
Block a user