改名
This commit is contained in:
@@ -52,7 +52,6 @@ trait Action
|
|||||||
} else {
|
} else {
|
||||||
$pathId = file_get_contents($socket);
|
$pathId = file_get_contents($socket);
|
||||||
@unlink($socket);
|
@unlink($socket);
|
||||||
clearstatcache(true, $socket);
|
|
||||||
if (empty($pathId)) {
|
if (empty($pathId)) {
|
||||||
$this->close($server);
|
$this->close($server);
|
||||||
} else {
|
} else {
|
||||||
@@ -63,6 +62,7 @@ trait Action
|
|||||||
$this->close($server);
|
$this->close($server);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
clearstatcache(true);
|
||||||
Snowflake::clearWorkerId();
|
Snowflake::clearWorkerId();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,6 +91,7 @@ trait Action
|
|||||||
private function masterIdCheck()
|
private function masterIdCheck()
|
||||||
{
|
{
|
||||||
echo '.';
|
echo '.';
|
||||||
|
clearstatcache(true);
|
||||||
$files = new \DirectoryIterator($this->getWorkerPath());
|
$files = new \DirectoryIterator($this->getWorkerPath());
|
||||||
if ($files->getSize() < 1) {
|
if ($files->getSize() < 1) {
|
||||||
return false;
|
return false;
|
||||||
@@ -102,7 +103,6 @@ trait Action
|
|||||||
$this->closeByPid($content);
|
$this->closeByPid($content);
|
||||||
} else {
|
} else {
|
||||||
@unlink($file->getRealPath());
|
@unlink($file->getRealPath());
|
||||||
clearstatcache(true, $file->getRealPath());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user