mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Check project state inside the lock
This commit is contained in:
parent
439d55d805
commit
925ebc2133
1 changed files with 1 additions and 1 deletions
|
@ -360,8 +360,8 @@ public class Bridge {
|
|||
String migratedFromID = doc.getMigratedFromID();
|
||||
if (migratedFromID != null) {
|
||||
Log.info("[{}] Has a migratedFromId: {}", projectName, migratedFromID);
|
||||
ProjectState sourceState = dbStore.getProjectState(migratedFromID);
|
||||
try (LockGuard __ = lock.lockGuard(migratedFromID)) {
|
||||
ProjectState sourceState = dbStore.getProjectState(migratedFromID);
|
||||
switch (sourceState) {
|
||||
case NOT_PRESENT:
|
||||
// Normal init-repo
|
||||
|
|
Loading…
Reference in a new issue