mirror of
https://github.com/apache/druid.git
synced 2025-02-20 00:47:40 +00:00
SQLMetadataSegmentManager: Comments, formatting adjustments (#7452)
Follow up to #7447.
This commit is contained in:
parent
2470b3279f
commit
3854cfd15e
@ -105,7 +105,9 @@ public class SQLMetadataSegmentManager implements MetadataSegmentManager
|
|||||||
private final SQLMetadataConnector connector;
|
private final SQLMetadataConnector connector;
|
||||||
|
|
||||||
// Volatile since this reference is reassigned in "poll" and then read from in other threads.
|
// Volatile since this reference is reassigned in "poll" and then read from in other threads.
|
||||||
// Starts null so we can differentiate "never polled" (null) from "polled, but empty" (empty map)
|
// Starts null so we can differentiate "never polled" (null) from "polled, but empty" (empty map).
|
||||||
|
// Note that this is not simply a lazy-initialized variable: it starts off as null, and may transition between
|
||||||
|
// null and nonnull multiple times as stop() and start() are called.
|
||||||
@Nullable
|
@Nullable
|
||||||
private volatile ConcurrentHashMap<String, DruidDataSource> dataSources = null;
|
private volatile ConcurrentHashMap<String, DruidDataSource> dataSources = null;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user