From: Mikael Nordfeldth Date: Sun, 8 Feb 2015 14:17:50 +0000 (+0100) Subject: updateWithKeys did not always COMMIT transactions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=59bbc81c4b71dbfc37f9a2058012bd5c342c3faa;p=quix0rs-gnu-social.git updateWithKeys did not always COMMIT transactions --- diff --git a/classes/Managed_DataObject.php b/classes/Managed_DataObject.php index 5ed0e525ea..3a6ed20312 100644 --- a/classes/Managed_DataObject.php +++ b/classes/Managed_DataObject.php @@ -353,6 +353,9 @@ abstract class Managed_DataObject extends Memcached_DataObject } $orig->decache(); $this->encache(); + + // commit our db transaction since we won't reach the COMMIT below + $this->query('COMMIT'); return true; }