Compare commits
2 commits
main
...
handle_sna
Author | SHA1 | Date | |
---|---|---|---|
|
a2e134f036 | ||
|
06aa4b604f |
1 changed files with 6 additions and 2 deletions
|
@ -484,7 +484,7 @@ impl AdminRpcHandler {
|
|||
AdminRpc::MetaOperation(MetaOperation::Snapshot { all: false }),
|
||||
PRIO_NORMAL,
|
||||
)
|
||||
.await
|
||||
.await?
|
||||
}))
|
||||
.await;
|
||||
|
||||
|
@ -497,8 +497,12 @@ impl AdminRpcHandler {
|
|||
ret.push(format!("{:?}\t{}", to, res_str));
|
||||
}
|
||||
|
||||
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?;
|
||||
Ok(AdminRpc::Ok("Snapshot has been saved.".into()))
|
||||
|
|
Loading…
Add table
Reference in a new issue