Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Wait for locked token rows during migration

Neeraj Gupta7d4458420e20
diff --git a/server/pkg/repo/userauth_migration.go b/server/pkg/repo/userauth_migration.go
index fe29cc9c37..5970d79784 100644
--- a/server/pkg/repo/userauth_migration.go
+++ b/server/pkg/repo/userauth_migration.go
@@ -18,7 +18,7 @@ func (repo *UserAuthRepository) MigratePlaintextTokens(ctx context.Context) (int
WHERE token IS NOT NULL
ORDER BY token
LIMIT $1
- FOR UPDATE SKIP LOCKED
+ FOR UPDATE
)
UPDATE tokens SET token = NULL
FROM batch