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:
gbrodman 2021-11-16 11:37:20 -05:00 committed by GitHub
parent ff7ac45bf4
commit 247267a03b
2 changed files with 2 additions and 2 deletions

View file

@ -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);
} }
} }

View file

@ -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);
} }
} }