server/sql: flush privileges after modification
Build and test / check-license (push) Successful in 54s
Build and test / check (push) Successful in 1m42s
Build and test / test (push) Successful in 3m34s
Build and test / build (push) Successful in 3m39s
Build and test / docs (push) Successful in 5m33s

This commit is contained in:
2026-04-28 19:10:16 +09:00
parent a64d1fa1bf
commit 759df9ef42
2 changed files with 5 additions and 1 deletions
@@ -487,6 +487,10 @@ pub async fn apply_privilege_diffs(
results.insert(key, result);
}
if let Err(err) = connection.execute("FLUSH PRIVILEGES").await {
tracing::error!("Failed to flush privileges: {}", err);
}
results
.into_iter()
.map(|((k1, k2), v)| (k1, (k2, v)))