read volume lastAppendAtNs when loading a volume

This commit is contained in:
Chris Lu
2019-04-19 01:56:38 -07:00
parent ac2727853f
commit 0be2d51c96
4 changed files with 28 additions and 24 deletions

View File

@@ -57,9 +57,11 @@ func (l *DiskLocation) loadExistingVolume(dir os.FileInfo, needleMapKind NeedleM
size, _, _ := v.FileStat()
glog.V(0).Infof("data file %s, replicaPlacement=%s v=%d size=%d ttl=%s",
l.Directory+"/"+name, v.ReplicaPlacement, v.Version(), size, v.Ttl.String())
// println("volume", vid, "last append at", v.lastAppendAtNs)
} else {
glog.V(0).Infof("new volume %s error %s", name, e)
}
}
}
}