/** * Object destructor */ public function __destruct() { $this->commit(); // Release "under processing" flag LockManager::releaseReadLock($this->_directory); if ($this->_closeDirOnExit) { $this->_directory->close(); } $this->_directory = null; $this->_writer = null; $this->_segmentInfos = null; }