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:06:59 UTC
[solr] branch main 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 main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 02df55afc81 SOLR-16686: A little bit of cleanup.
02df55afc81 is described below
commit 02df55afc818ab76f2b3fd504dcf8d357e52557f
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);