We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d17fb28 commit 9c2ef72Copy full SHA for 9c2ef72
lib/private/Snowflake/FileSequence.php
@@ -60,6 +60,10 @@ public function isAvailable(): bool {
60
public function nextId(int $serverId, int $seconds, int $milliseconds): int {
61
// Open lock file
62
$filePath = $this->getFilePath($milliseconds % self::NB_FILES);
63
+ if (is_file($filePath)) {
64
+ echo 'Log file exists';
65
+ var_dump($filePath, decoct(fileperms($filePath)), fileowner($filePath));
66
+ }
67
$fp = fopen($filePath, 'c+');
68
if ($fp === false) {
69
throw new \Exception('Unable to open sequence ID file: ' . $filePath);
0 commit comments