makediff func with UT case

This commit is contained in:
霍晓栋
2016-10-07 16:22:24 +08:00
parent ed848425c7
commit ce1f7ab662
4 changed files with 132 additions and 31 deletions

View File

@@ -10,11 +10,6 @@ import (
"github.com/chrislusf/seaweedfs/weed/glog"
)
type keyField struct {
offset uint32
size uint32
}
type Volume struct {
Id VolumeId
dir string
@@ -29,8 +24,8 @@ type Volume struct {
dataFileAccessLock sync.Mutex
lastModifiedTime uint64 //unix time in seconds
lastCompactingIndexOffset uint64
incrementedHasUpdatedIndexEntry map[uint64]keyField
lastCompactIndexOffset uint64
lastCompactRevision uint16
}
func NewVolume(dirname string, collection string, id VolumeId, needleMapKind NeedleMapType, replicaPlacement *ReplicaPlacement, ttl *TTL) (v *Volume, e error) {