We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b36521 commit 57330d8Copy full SHA for 57330d8
io-engine/src/grpc/mod.rs
@@ -202,14 +202,14 @@ pub async fn acquire_subsystem_lock<'a>(
202
if let Some(resource) = resource {
203
match subsystem.lock_resource(resource.to_string(), None, true).await {
204
Some(lock_guard) => Ok(lock_guard),
205
- None => Err(Status::already_exists(format!(
+ None => Err(Status::aborted(format!(
206
"Failed to acquire lock for the resource: {resource}, lock already held"
207
))),
208
}
209
} else {
210
match subsystem.lock(None, true).await {
211
212
213
"Failed to acquire subsystem lock: {subsystem:?}, lock already held",
214
215
0 commit comments