From 79e6b4df4b709a2d060919a5d38f8dd4011ae374 Mon Sep 17 00:00:00 2001 From: Tim Whittington Date: Sat, 30 Jul 2022 09:37:20 +1200 Subject: [PATCH] Make server reference volatile --- .../orientechnologies/orient/core/db/OrientDBDistributed.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distributed/src/main/java/com/orientechnologies/orient/core/db/OrientDBDistributed.java b/distributed/src/main/java/com/orientechnologies/orient/core/db/OrientDBDistributed.java index 64ea8dd3b13..2f306dba7be 100755 --- a/distributed/src/main/java/com/orientechnologies/orient/core/db/OrientDBDistributed.java +++ b/distributed/src/main/java/com/orientechnologies/orient/core/db/OrientDBDistributed.java @@ -34,7 +34,7 @@ /** Created by tglman on 08/08/17. */ public class OrientDBDistributed extends OrientDBEmbedded implements OServerAware { - private OServer server; + private volatile OServer server; private volatile OHazelcastPlugin plugin; public OrientDBDistributed(String directoryPath, OrientDBConfig config, Orient instance) {