aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2016-10-08 10:12:50 -0700
committerGitHub <noreply@github.com>2016-10-08 10:12:50 -0700
commit79fdea0de4176dc44b3728987c0aa4b33b725503 (patch)
tree6a61f67775f8a739cadd15a7c3d91f752b2b69de /weed/storage/volume.go
parentdffad65f2f3b1e87c7ac5274065730cabceeee99 (diff)
parent7d73bbb07399cc504ae2ebdcfdc164dc01295916 (diff)
downloadseaweedfs-79fdea0de4176dc44b3728987c0aa4b33b725503.tar.xz
seaweedfs-79fdea0de4176dc44b3728987c0aa4b33b725503.zip
Merge pull request #375 from hxiaodon/master
supplemental data between compacting and commit compacting
Diffstat (limited to 'weed/storage/volume.go')
-rw-r--r--weed/storage/volume.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go
index 801dfe267..c1d531376 100644
--- a/weed/storage/volume.go
+++ b/weed/storage/volume.go
@@ -23,6 +23,9 @@ type Volume struct {
dataFileAccessLock sync.Mutex
lastModifiedTime uint64 //unix time in seconds
+
+ lastCompactIndexOffset uint64
+ lastCompactRevision uint16
}
func NewVolume(dirname string, collection string, id VolumeId, needleMapKind NeedleMapType, replicaPlacement *ReplicaPlacement, ttl *TTL) (v *Volume, e error) {