You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by el...@apache.org on 2023/03/07 19:07:39 UTC

[solr] branch branch_9x updated: SOLR-16686: A little bit of cleanup.

This is an automated email from the ASF dual-hosted git repository.

elyograg pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new d308c17a366 SOLR-16686: A little bit of cleanup.
d308c17a366 is described below

commit d308c17a36644831adafb1d0b5a98193dee9b79b
Author: Shawn Heisey <el...@apache.org>
AuthorDate: Tue Mar 7 12:06:20 2023 -0700

    SOLR-16686: A little bit of cleanup.
---
 .../src/java/org/apache/solr/common/cloud/ZkMaintenanceUtils.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkMaintenanceUtils.java b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkMaintenanceUtils.java
index 04cadcefbc3..f5fe49aed04 100644
--- a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkMaintenanceUtils.java
+++ b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkMaintenanceUtils.java
@@ -184,7 +184,7 @@ public class ZkMaintenanceUtils {
     Path filename = Paths.get(dst);
     Path parentDir = filename.getParent();
     if (parentDir != null) {
-      Files.createDirectories(filename.getParent());
+      Files.createDirectories(parentDir);
     }
     log.info("Writing file {}", filename);
     Files.write(filename, data);