fix(madmin): restore server_info msgpack compatibility across mixed nodes (#2621)

This commit is contained in:
houseme
2026-04-21 09:09:25 +08:00
committed by GitHub
parent 3796b684f0
commit b7a945e453
6 changed files with 141 additions and 9 deletions
+2 -2
View File
@@ -467,12 +467,12 @@ impl MQTTArgs {
if !self.queue_dir.is_empty() {
let path = std::path::Path::new(&self.queue_dir);
if !path.is_absolute() {
return Err(TargetError::Configuration("mqtt queueDir path should be absolute".to_string()));
return Err(TargetError::Configuration("mqtt queue_dir path should be absolute".to_string()));
}
if self.qos == QoS::AtMostOnce {
return Err(TargetError::Configuration(
"QoS should be AtLeastOnce (1) or ExactlyOnce (2) if queueDir is set".to_string(),
"QoS should be AtLeastOnce (1) or ExactlyOnce (2) if queue_dir is set".to_string(),
));
}
}
+1 -1
View File
@@ -79,7 +79,7 @@ impl WebhookArgs {
if !self.queue_dir.is_empty() {
let path = std::path::Path::new(&self.queue_dir);
if !path.is_absolute() {
return Err(TargetError::Configuration("webhook queueDir path should be absolute".to_string()));
return Err(TargetError::Configuration("webhook queue_dir path should be absolute".to_string()));
}
}