mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(client): asynchronously check if config is empty to avoid uninitialized panic #1000056931
Signed-off-by: clinx <chenlin1@oppo.com>
This commit is contained in:
parent
f7b20d6d9f
commit
a0cf5a13f1
@ -444,7 +444,7 @@ func (client *ExtentClient) enableRemoteCacheCluster(enabled bool) {
|
||||
}
|
||||
|
||||
func (client *ExtentClient) UpdateRemoteCacheConfig(view *proto.SimpleVolView) {
|
||||
if client.extentConfig.NeedRemoteCache {
|
||||
if client.extentConfig != nil && client.extentConfig.NeedRemoteCache {
|
||||
client.RemoteCache.UpdateRemoteCacheConfig(client, view)
|
||||
} else {
|
||||
log.LogInfof("UpdateRemoteCacheConfig do nothing, client.extentConfig.NeedRemoteCache %v", client.extentConfig.NeedRemoteCache)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user