supplemental data between compacting and commit compacting

This commit is contained in:
霍晓栋
2016-09-29 13:57:23 +08:00
parent dffad65f2f
commit ed848425c7
2 changed files with 110 additions and 8 deletions

View File

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