Fix usage stats disabled home view#896
Merged
eldadfux merged 1 commit intoFeb 10, 2021
Merged
Conversation
abnegate
added a commit
that referenced
this pull request
Jun 18, 2026
…le PDOProxy The Swoole PDOProxy keeps its own transaction counter that desyncs on a mid-transaction connection loss and is never reset on reconnect or pool checkin, poisoning pooled connections (every later startTransaction trusts the stale counter and fails with "There is no active transaction" until restart). utopia-php/database#896 moves connection-loss recovery into the adapter (reconnect-on-execute via Utopia\Database\PDOStatement + withTransaction replay) with the real PDO as the single source of truth, so the proxy is no longer needed and the desync is structurally impossible. - registers.php: wrap connections in Utopia\Database\PDO directly instead of Swoole\Database\PDOProxy. - Set PDO::ATTR_ERRMODE => ERRMODE_EXCEPTION explicitly (previously enforced by the proxy; also defaulted by #896, set here for clarity). - Require the #896 branch via a VCS repository until it is tagged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
abnegate
added a commit
that referenced
this pull request
Jun 18, 2026
…le PDOProxy The Swoole PDOProxy keeps its own transaction counter that desyncs on a mid-transaction connection loss and is never reset on reconnect or pool checkin, poisoning pooled connections (every later startTransaction trusts the stale counter and fails with "There is no active transaction" until restart). utopia-php/database#896 moves connection-loss recovery into the adapter (reconnect-on-execute via Utopia\Database\PDOStatement + withTransaction replay) with the real PDO as the single source of truth, so the proxy is no longer needed and the desync is structurally impossible. - registers.php: wrap connections in Utopia\Database\PDO directly instead of Swoole\Database\PDOProxy. - Set PDO::ATTR_ERRMODE => ERRMODE_EXCEPTION explicitly (previously enforced by the proxy; also defaulted by #896, set here for clarity). - Require the #896 branch via a VCS repository until it is tagged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
abnegate
added a commit
that referenced
this pull request
Jun 18, 2026
…le PDOProxy The Swoole PDOProxy keeps its own transaction counter that desyncs on a mid-transaction connection loss and is never reset on reconnect or pool checkin, poisoning pooled connections (every later startTransaction trusts the stale counter and fails with "There is no active transaction" until restart). utopia-php/database#896 moves connection-loss recovery into the adapter (reconnect-on-execute via Utopia\Database\PDOStatement + withTransaction replay) with the real PDO as the single source of truth, so the proxy is no longer needed and the desync is structurally impossible. - registers.php: wrap connections in Utopia\Database\PDO directly instead of Swoole\Database\PDOProxy. - Set PDO::ATTR_ERRMODE => ERRMODE_EXCEPTION explicitly (previously enforced by the proxy; also defaulted by #896, set here for clarity). - Require the #896 branch via a VCS repository until it is tagged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
abnegate
added a commit
that referenced
this pull request
Jun 18, 2026
…le PDOProxy The Swoole PDOProxy keeps its own transaction counter that desyncs on a mid-transaction connection loss and is never reset on reconnect or pool checkin, poisoning pooled connections (every later startTransaction trusts the stale counter and fails with "There is no active transaction" until restart). utopia-php/database#896 moves connection-loss recovery into the adapter (reconnect-on-execute via Utopia\Database\PDOStatement + withTransaction replay) with the real PDO as the single source of truth, so the proxy is no longer needed and the desync is structurally impossible. - registers.php: wrap connections in Utopia\Database\PDO directly instead of Swoole\Database\PDOProxy. - Set PDO::ATTR_ERRMODE => ERRMODE_EXCEPTION explicitly (previously enforced by the proxy; also defaulted by #896, set here for clarity). - Require the #896 branch via a VCS repository until it is tagged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Before this fix when stats disabled

After

Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)