lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r903664 - /lucene/solr/branches/cloud/src/java/org/apache/solr/core/CoreDescriptor.java
Date Wed, 27 Jan 2010 14:44:28 GMT
Author: markrmiller
Date: Wed Jan 27 14:44:28 2010
New Revision: 903664

URL: http://svn.apache.org/viewvc?rev=903664&view=rev
Log:
drop "SHARDID:" from default shardId

Modified:
    lucene/solr/branches/cloud/src/java/org/apache/solr/core/CoreDescriptor.java

Modified: lucene/solr/branches/cloud/src/java/org/apache/solr/core/CoreDescriptor.java
URL: http://svn.apache.org/viewvc/lucene/solr/branches/cloud/src/java/org/apache/solr/core/CoreDescriptor.java?rev=903664&r1=903663&r2=903664&view=diff
==============================================================================
--- lucene/solr/branches/cloud/src/java/org/apache/solr/core/CoreDescriptor.java (original)
+++ lucene/solr/branches/cloud/src/java/org/apache/solr/core/CoreDescriptor.java Wed Jan 27
14:44:28 2010
@@ -47,7 +47,7 @@
       this.cloudDesc = new CloudDescriptor();
       // cloud collection defaults to core name
       cloudDesc.setCollectionName(name == "" ? coreContainer.getDefaultCoreName() : name);
-      this.cloudDesc.setShardId("SHARDID:" + coreContainer.getZooKeeperController().getNodeName()
+ "_" + name);
+      this.cloudDesc.setShardId(coreContainer.getZooKeeperController().getNodeName() + "_"
+ name);
     }
     
     if (name == null) {



Mime
View raw message