stillalex commented on PR #1155:
URL: https://github.com/apache/solr/pull/1155#issuecomment-1344809731

   > Ahhh, no I think this is a misunderstanding. I exactly copied the work 
that is actually done. CoreContainer.getCore() set's incRefCount to true and 
triggers SolrCore.open(). If you set IncRefCount to false the call to 
core.open() never happens and therefore everything inside open() which are 
MDC.put calls (I've counted them) and atomicInt incrementation.
   
   @debe I see what you mean now. I think you are right, the things you added 
are equivalent to what is happening inside the lock. one would have to wonder 
why they are inside the lock in the first place (`refCount.incrementAndGet();` 
does not strike me as needing synchronization).
   
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to