]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
updateWithKeys did not always COMMIT transactions
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 8 Feb 2015 14:17:50 +0000 (15:17 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 8 Feb 2015 14:17:50 +0000 (15:17 +0100)
classes/Managed_DataObject.php

index 5ed0e525eab3ab63e36a33e56282a4115a7b2760..3a6ed203128e09e27c810739892bf27a93363021 100644 (file)
@@ -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;
         }