From 59bbc81c4b71dbfc37f9a2058012bd5c342c3faa Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 8 Feb 2015 15:17:50 +0100 Subject: [PATCH] updateWithKeys did not always COMMIT transactions --- classes/Managed_DataObject.php | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5