mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(snowflake_ids): allow multiple instance with same temp directory
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
parent
acd481bb7b
commit
e8b214085a
1 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace OC\Snowflake;
|
||||
|
||||
use OC_Util;
|
||||
use OCP\ITempManager;
|
||||
use Override;
|
||||
|
||||
|
|
@ -27,7 +28,7 @@ class FileSequence implements ISequence {
|
|||
public function __construct(
|
||||
ITempManager $tempManager,
|
||||
) {
|
||||
$this->workDir = $tempManager->getTempBaseDir() . '/' . self::LOCK_FILE_DIRECTORY;
|
||||
$this->workDir = $tempManager->getTempBaseDir() . '/' . self::LOCK_FILE_DIRECTORY . '_' . OC_Util::getInstanceId();
|
||||
$this->ensureWorkdirExists();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue