fixed not deleted files in filesystem

This commit is contained in:
Ralf Becker 2010-01-21 22:56:57 +00:00
parent 91b434636b
commit 9c4b9aebbf

View File

@ -516,7 +516,8 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
if (($ret = $stmt->execute(array('fs_id' => $stat['ino']))))
{
if (self::url2operation($url) == self::STORE2FS && !($stat['mode'] & self::MODE_LINK))
if (self::url2operation($url) == self::STORE2FS &&
($stat['mode'] & self::MODE_LINK) != self::MODE_LINK)
{
unlink(self::_fs_path($stat['ino']));
}