dsmiley commented on code in PR #2786:
URL: https://github.com/apache/solr/pull/2786#discussion_r1809192524
##########
solr/core/src/java/org/apache/solr/core/CoreContainer.java:
##########
@@ -2061,13 +2066,16 @@ public void reload(String name, UUID coreId) {
RefCounted<IndexWriter> iwRef =
core.getSolrCoreState().getIndexWriter(null);
if (iwRef != null) {
IndexWriter iw = iwRef.get();
- // switch old core to readOnly
- core.readOnly = true;
try {
if (iw != null) {
- iw.commit();
+ SolrQueryRequest req = new LocalSolrQueryRequest(core, new
ModifiableSolrParams());
+ CommitUpdateCommand cmd =
Review Comment:
nit: "var" would be clear and short
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]