mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
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:
parent
3214ae5787
commit
eaf52bfdaa
@ -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 == "" {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user