refactor(data): refactor the usage of the buffer pool during the prefetch process. #1000048465

Signed-off-by: Victor1319 <zengxuewei@oppo.com>
(cherry picked from commit 693f7e4996)
This commit is contained in:
Victor1319 2025-04-08 16:08:50 +08:00 committed by chihe
parent 3214ae5787
commit eaf52bfdaa

View File

@ -1022,6 +1022,7 @@ func parseMountOption(cfg *config.Config) (*proto.MountOptions, error) {
available = int64((total - used) / 3)
if available < opt.AheadReadTotalMem {
opt.AheadReadTotalMem = available
syslog.Printf("available ahead read mem: %v\n", available)
}
}
if opt.MountPoint == "" || opt.Volname == "" || opt.Owner == "" || opt.Master == "" {