Skip to content

Commit 541df67

Browse files
committed
Remove the volatile keyword.
1 parent 230bca5 commit 541df67

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/session/IClientSession.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,27 @@
3838

3939
public abstract class IClientSession {
4040

41-
private volatile long id;
41+
private long id;
4242

4343
private ClientVersion clientVersion;
4444

4545
private ZoneId zoneId;
4646

4747
private TimeZone timeZone;
4848

49-
private volatile long userId;
49+
private long userId;
5050

51-
private volatile String username;
51+
private String username;
5252

53-
private volatile boolean login = false;
53+
private boolean login = false;
5454

5555
private long logInTime;
5656

5757
private SqlDialect sqlDialect = SqlDialect.TREE;
5858

5959
@Nullable private String databaseName;
6060

61-
private volatile long lastActiveTime = CommonDateTimeUtils.currentTime();
61+
private long lastActiveTime = CommonDateTimeUtils.currentTime();
6262

6363
public abstract String getClientAddress();
6464

0 commit comments

Comments
 (0)