Skip to content

Commit

Permalink
Add @threadsafe on MetaDataContexts
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Jan 14, 2025
1 parent 18e8bd7 commit 4fae41d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
import org.apache.shardingsphere.infra.metadata.ShardingSphereMetaData;
import org.apache.shardingsphere.infra.metadata.statistics.ShardingSphereStatistics;

import javax.annotation.concurrent.ThreadSafe;
import java.util.concurrent.atomic.AtomicReference;

/**
* Meta data contexts.
*/
@ThreadSafe
public final class MetaDataContexts {

private final AtomicReference<ShardingSphereMetaData> metaData = new AtomicReference<>();
Expand Down

0 comments on commit 4fae41d

Please sign in to comment.