Skip to content

Commit

Permalink
2-step notify
Browse files Browse the repository at this point in the history
  • Loading branch information
Rossil2012 committed Nov 28, 2023
1 parent e3220d0 commit 0a551e3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/meta/src/manager/catalog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ impl CatalogManager {
with_grant_option: false,
granted_by: old_owner_id,
}
}]
}],
};
if let Some(privilege) = user
.grant_privileges
Expand All @@ -2005,7 +2005,8 @@ impl CatalogManager {
commit_meta!(self, databases, users)?;
user_core.increase_ref(owner_id);
user_core.decrease_ref(old_owner_id);
let version = self.notify_frontend(Operation::Update, vec![relation_info, user_info]).await;
self.notify_frontend(Operation::Update, user_info).await;
let version = self.notify_frontend(Operation::Update, relation_info).await;
return Ok(version);
}
alter_owner_request::Object::SchemaId(schema_id) => {
Expand All @@ -2024,7 +2025,7 @@ impl CatalogManager {
}
};

let version = self.notify_frontend(Operation::Update, vec![relation_info]).await;
let version = self.notify_frontend(Operation::Update, relation_info).await;

Ok(version)
}
Expand Down

0 comments on commit 0a551e3

Please sign in to comment.