Пример #1
0
 /**
  * @depends testRadosRead
  */
 public function testRadosRemove($info)
 {
     $r = rados_remove($info['ioctx'], $info['oid']);
     $this->assertTrue($r);
     return $info;
 }
Пример #2
0
Файл: IO.php Проект: shen2/rados
 public function remove($oid)
 {
     return \rados_remove($this->_ioctx, $oid);
 }
Пример #3
0
 /**
  * @param string $path
  * @return bool
  * @throws RadosException
  */
 public function unlink($path)
 {
     $openedPath = null;
     if (!$this->stream_open($path, 'r', null, $openedPath)) {
         return false;
     }
     $ret = \rados_remove($this->ioctx, $this->stat['oid']);
     if (!$ret) {
         throw new IOException("Could not delete '" . $this->stat['oid'] . "'");
     }
     $this->stream_close();
     return true;
 }