소스 검색

stats: Check return code of stats_map_get

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Jan Friesse 6 년 전
부모
커밋
89b0d62f8b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      exec/stats.c

+ 2 - 0
exec/stats.c

@@ -505,6 +505,8 @@ static void stats_map_notify_fn(uint32_t event, char *key, void *old_value, void
 			  &new_value,
 			  &new_val.len,
 			  &new_val.type) != CS_OK) {
+		log_printf(LOGSYS_LEVEL_WARNING, "get value of notified key %s failed", key);
+		return ;
 	}
 
 	/* We don't know what the old value was