Compare commits
2 Commits
main
...
handle_sna
Author | SHA1 | Date | |
---|---|---|---|
|
a2e134f036 | ||
|
06aa4b604f |
@ -484,7 +484,7 @@ impl AdminRpcHandler {
|
||||
AdminRpc::MetaOperation(MetaOperation::Snapshot { all: false }),
|
||||
PRIO_NORMAL,
|
||||
)
|
||||
.await
|
||||
.await?
|
||||
}))
|
||||
.await;
|
||||
|
||||
@ -497,7 +497,11 @@ impl AdminRpcHandler {
|
||||
ret.push(format!("{:?}\t{}", to, res_str));
|
||||
}
|
||||
|
||||
Ok(AdminRpc::Ok(format_table_to_string(ret)))
|
||||
if resps.iter().any(Result::is_err) {
|
||||
Err(GarageError::Message(format_table_to_string(ret)).into())
|
||||
} else {
|
||||
Ok(AdminRpc::Ok(format_table_to_string(ret)))
|
||||
}
|
||||
}
|
||||
MetaOperation::Snapshot { all: false } => {
|
||||
garage_model::snapshot::async_snapshot_metadata(&self.garage).await?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user