You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/07/14 03:00:00 UTC

[GitHub] [shardingsphere] tristaZero commented on issue #6342: Why does HintManager's getInstance return a new HintManager instead of returning the one held by the current thread

tristaZero commented on issue #6342:
URL: https://github.com/apache/shardingsphere/issues/6342#issuecomment-657937431


   Hi @SirMin sorry, do you mean the following one? 
   
   ```
   public final class HintManager implements AutoCloseable {
       
       private static final ThreadLocal<HintManager> HINT_MANAGER_HOLDER = new ThreadLocal<>();
       
       private final Multimap<String, Comparable<?>> databaseShardingValues = HashMultimap.create();
       
       private final Multimap<String, Comparable<?>> tableShardingValues = HashMultimap.create();
       
       private boolean databaseShardingOnly;
       
       private boolean masterRouteOnly;
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org