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