Re: What's the meaning of mysqli.rollback_on_cached_plink?
| From: | Johannes Schlüter | Date: | Tue, 24 Apr 2018 22:15:32 +0000 |
| Subject: | Re: What's the meaning of mysqli.rollback_on_cached_plink? | ||
| References: | 1 2 3 4 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969386935@lists.php.net to get a copy of this message | ||
On Mi, 2018-04-25 at 00:05 +0200, Christoph M. Becker wrote:
> Thanks, Johannes! However, it seems to me that the connection is
> *not* put back into the pool, if rollback_on_cached_plink is true;
> instead the persistent connection is actually closed (if the rollback
> succeeded).
>
It is not put back if rollback_on_cached_plink is true AND rollback
fails.
I don't know when rollback fails, I believe the only situation would be
a broken connection or a truly critical server error (full disk or
similar which prevents writing rollback info ... but then one has other
issues than just a closed persistent connection)
johannes