mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix(snowflakes): fix APCu cache restarted detection
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
parent
69ec2ce26b
commit
8062cdb485
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ class APCuSequence implements ISequence {
|
|||
|
||||
#[Override]
|
||||
public function nextId(int $serverId, int $seconds, int $milliseconds): int|false {
|
||||
if ((int)apcu_cache_info(true)['creation_time'] === $seconds) {
|
||||
if ((int)apcu_cache_info(true)['start_time'] === $seconds) {
|
||||
// APCu cache was just started
|
||||
// It means a sequence was maybe deleted
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue