diff options
author | Brion Vibber <brion@pobox.com> | 2009-12-30 15:55:15 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2009-12-30 15:55:15 -0800 |
commit | 9218cce3cdc824e2011bcdf250a08ca1698f5ea1 (patch) | |
tree | 074f4b82ba75036eb60d1605226fe826efec4a94 /classes/Memcached_DataObject.php | |
parent | 45dc24689df85b63eaa13173cd9a111b4a5cf237 (diff) |
subbug debug info to check on free ordering
Diffstat (limited to 'classes/Memcached_DataObject.php')
-rw-r--r-- | classes/Memcached_DataObject.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index d8b0db5a6..4efec06ab 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -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) { |