CI: repair sanitizer fixtures and client execution gates
Foundation / checks (ecs) (push) Successful in 2m33s
Foundation / checks (deploy) (push) Successful in 4m36s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 8m8s
Foundation / checks (checks) (push) Canceled after 10m47s
Foundation / checks (client) (push) Canceled after 10m49s
Foundation / checks (network) (push) Canceled after 10m48s
Foundation / checks (postgres) (push) Canceled after 10m49s

This commit is contained in:
dingo
2026-10-17 22:22:34 -04:00
parent 89f29fef3a
commit 1e23dc3799
12 changed files with 162 additions and 8 deletions
+6 -1
View File
@@ -217,7 +217,12 @@ AuthStatus AuthClient::status() const {
}
std::optional<AuthGrant> AuthClient::take_grant() {
std::lock_guard lock{impl_->mutex};
return std::exchange(impl_->grant, {});
auto& pending = impl_->grant;
if (!pending.has_value())
return {};
auto grant = std::move(*pending);
pending.reset();
return std::optional<AuthGrant>{std::move(grant)};
}
#ifndef _WIN32
std::unique_ptr<AuthPlatform> native_auth_platform(std::string_view) {