mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(flashnode): set default remote cache timeout to 100ms#1000021930
Signed-off-by: clinx <chenlin1@oppo.com>
This commit is contained in:
parent
be196f9b6f
commit
3889dba14a
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user