SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
volume: read dat files' last modified time no matter dat files are catWrite or readonly
xushuxun9af9f36b8934
diff --git a/weed/storage/volume_loading.go b/weed/storage/volume_loading.goindex ed1cfe1243..0b6021ca8a 100644--- a/weed/storage/volume_loading.go+++ b/weed/storage/volume_loading.go@@ -31,12 +31,12 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind}if canWrite {v.dataFile, e = os.OpenFile(fileName+".dat", os.O_RDWR|os.O_CREATE, 0644)- v.lastModifiedTsSeconds = uint64(modifiedTime.Unix())} else {glog.V(0).Infoln("opening " + fileName + ".dat in READONLY mode")v.dataFile, e = os.Open(fileName + ".dat")v.readOnly = true}+ v.lastModifiedTsSeconds = uint64(modifiedTime.Unix())if fileSize >= _SuperBlockSize {alreadyHasSuperBlock = true}