Merge remote-tracking branch 'origin/rel-1.5.3'

This commit is contained in:
anhefti 2023-10-31 10:16:41 +01:00
commit 36b2ccb32c
2 changed files with 12 additions and 3 deletions

View file

@ -18,7 +18,7 @@
<packaging>jar</packaging>
<properties>
<sebserver-version>1.5.2</sebserver-version>
<sebserver-version>1.5.3</sebserver-version>
<build-version>${sebserver-version}</build-version>
<revision>${sebserver-version}</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View file

@ -436,9 +436,14 @@ public class ClientConnectionDAOImpl implements ClientConnectionDAO {
@Transactional
public Result<Boolean> saveSecurityCheckStatus(final Long connectionId, final Boolean checkStatus) {
return Result.tryCatch(() -> {
// NOTE: we use nanoseconds here to get a better precision to better avoid
// same value of real concurrent calls on distributed systems
final long nanosecondsNow = System.nanoTime();
this.clientConnectionRecordMapper.updateByPrimaryKeySelective(new ClientConnectionRecord(
connectionId,
null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, nanosecondsNow, null, null, null, null,
null,
Utils.toByte(checkStatus),
null, null));
return checkStatus;
@ -450,9 +455,13 @@ public class ClientConnectionDAOImpl implements ClientConnectionDAO {
@Transactional
public Result<Boolean> saveSEBClientVersionCheckStatus(final Long connectionId, final Boolean checkStatus) {
return Result.tryCatch(() -> {
// NOTE: we use nanoseconds here to get a better precision to better avoid
// same value of real concurrent calls on distributed systems
final long nanosecondsNow = System.nanoTime();
this.clientConnectionRecordMapper.updateByPrimaryKeySelective(new ClientConnectionRecord(
connectionId,
null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, nanosecondsNow, null, null, null, null,
null,
null, null, Utils.toByte(checkStatus)));
return checkStatus;
})