1
0
mirror of https://github.com/google/nomulus synced 2026-04-17 23:11:29 +00: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:
gbrodman
2021-11-16 11:37:20 -05:00
committed by GitHub
parent 8dbf4fced9
commit a53c127573
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.setPayload(message);
} 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.setPayload(message);
} finally {
lock.ifPresent(Lock::release);
lock.ifPresent(Lock::releaseSql);
}
}