Re: What's the meaning of mysqli.rollback_on_cached_plink?
| From: | Christoph M. Becker | Date: | Tue, 24 Apr 2018 22:22:21 +0000 |
| Subject: | Re: What's the meaning of mysqli.rollback_on_cached_plink? | ||
| References: | 1 2 3 4 5 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969386936@lists.php.net to get a copy of this message | ||
On 25.04.2018 at 00:15, Johannes Schlüter wrote:
> 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)
Thanks! Now I've got it – oops…
I'm going to update the docs ASAP; the most relevant info will be:
| In effect I believe the only effect is to decide /when/ the rollback
| happens - at "close" time or when taking the connection out of the
| pool for a new connections.
--
Christoph M. Becker