Skip to content

Commit 9581230

Browse files
authored
Merge pull request #56106 from nextcloud/fix/snowflake_apcu
2 parents 635a6ac + 8062cdb commit 9581230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Snowflake/APCuSequence.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function isAvailable(): bool {
1919

2020
#[Override]
2121
public function nextId(int $serverId, int $seconds, int $milliseconds): int|false {
22-
if ((int)apcu_cache_info(true)['creation_time'] === $seconds) {
22+
if ((int)apcu_cache_info(true)['start_time'] === $seconds) {
2323
// APCu cache was just started
2424
// It means a sequence was maybe deleted
2525
return false;

0 commit comments

Comments
 (0)