mirror of
https://github.com/google/nomulus.git
synced 2025-07-14 06:55:20 +02:00
Release the replay lock in SQL, not Datastore (#1422)
* Release the replay lock in SQL, not Datastore It's always acquired in SQL, so it should always be released in SQL.
This commit is contained in:
parent
ff7ac45bf4
commit
247267a03b
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ public class ReplayCommitLogsToSqlAction implements Runnable {
|
||||||
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
|
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
|
||||||
response.setPayload(message);
|
response.setPayload(message);
|
||||||
} finally {
|
} finally {
|
||||||
lock.ifPresent(Lock::release);
|
lock.ifPresent(Lock::releaseSql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,7 @@ public class ReplicateToDatastoreAction implements Runnable {
|
||||||
response.setStatus(SC_INTERNAL_SERVER_ERROR);
|
response.setStatus(SC_INTERNAL_SERVER_ERROR);
|
||||||
response.setPayload(message);
|
response.setPayload(message);
|
||||||
} finally {
|
} finally {
|
||||||
lock.ifPresent(Lock::release);
|
lock.ifPresent(Lock::releaseSql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue