]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
subbug debug info to check on free ordering
authorBrion Vibber <brion@pobox.com>
Wed, 30 Dec 2009 23:55:15 +0000 (15:55 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 30 Dec 2009 23:55:15 +0000 (15:55 -0800)
classes/Memcached_DataObject.php

index d8b0db5a69b7e1363a5487e6272050175d57f97d..4efec06abe261f6d9aa6beba9fc7debf2528c227 100644 (file)
@@ -31,11 +31,20 @@ class Memcached_DataObject extends DB_DataObject
 
     function __destruct()
     {
+        if (get_class($this) == 'Profile')
+            common_log(LOG_INFO, 'subbug: destructing result id ' . $this->_DB_resultid);
         $this->free();
         if (method_exists('DB_DataObject', '__destruct')) {
             parent::__destruct();
         }
     }
+    
+    function free()
+    {
+        if (get_class($this) == 'Profile')
+            common_log(LOG_INFO, 'subbug: freeing result id ' . $this->_DB_resultid);
+        parent::free();
+    }
 
     function &staticGet($cls, $k, $v=null)
     {