diff options
Diffstat (limited to 'weed/storage/volume.go')
| -rw-r--r-- | weed/storage/volume.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go index 258787701..c1d531376 100644 --- a/weed/storage/volume.go +++ b/weed/storage/volume.go @@ -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) { |
