fix(flashnode): set default remote cache timeout to 100ms#1000021930

Signed-off-by: clinx <chenlin1@oppo.com>
This commit is contained in:
clinx 2025-04-10 18:56:56 +08:00 committed by zhumingze1108
parent be196f9b6f
commit 3889dba14a

View File

@ -105,8 +105,8 @@ type RemoteCache struct {
func (rc *RemoteCache) UpdateRemoteCacheConfig(client *ExtentClient, view *proto.SimpleVolView) {
// cannot set vol's RemoteCacheReadTimeoutSec <= 0
if view.RemoteCacheReadTimeout < proto.ReadDeadlineTime {
view.RemoteCacheReadTimeout = proto.ReadDeadlineTime
if view.RemoteCacheReadTimeout < proto.DefaultRemoteCacheClientReadTimeout {
view.RemoteCacheReadTimeout = proto.DefaultRemoteCacheClientReadTimeout
}
if rc.VolumeEnabled != view.RemoteCacheEnable {
log.LogInfof("RcVolumeEnabled: %v -> %v", rc.VolumeEnabled, view.RemoteCacheEnable)