lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject [37/50] [abbrv] lucene-solr:feature/autoscaling: addBackcompatIndexes.py: only create moreterms, dvupdates, and empty indexes on unstable branch
Date Tue, 03 Oct 2017 13:39:18 GMT
addBackcompatIndexes.py: only create moreterms, dvupdates, and empty indexes on unstable branch


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/ae5caf3f
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ae5caf3f
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ae5caf3f

Branch: refs/heads/feature/autoscaling
Commit: ae5caf3fa67df0abcc6ab5190d0b380f94c2dc40
Parents: 0e8d941
Author: Steve Rowe <sarowe@gmail.com>
Authored: Sat Sep 30 23:22:46 2017 -0400
Committer: Steve Rowe <sarowe@gmail.com>
Committed: Sat Sep 30 23:22:46 2017 -0400

----------------------------------------------------------------------
 dev-tools/scripts/addBackcompatIndexes.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ae5caf3f/dev-tools/scripts/addBackcompatIndexes.py
----------------------------------------------------------------------
diff --git a/dev-tools/scripts/addBackcompatIndexes.py b/dev-tools/scripts/addBackcompatIndexes.py
index 03e858c..e64dbfc 100644
--- a/dev-tools/scripts/addBackcompatIndexes.py
+++ b/dev-tools/scripts/addBackcompatIndexes.py
@@ -246,7 +246,7 @@ def main():
   create_and_add_index(source, 'cfs', c.version, current_version, c.temp_dir)
   create_and_add_index(source, 'nocfs', c.version, current_version, c.temp_dir)
   create_and_add_index(source, 'sorted', c.version, current_version, c.temp_dir)
-  if c.version.minor == 0 and c.version.bugfix == 0:
+  if c.version.minor == 0 and c.version.bugfix == 0 and c.version.major < current_version.major:
     create_and_add_index(source, 'moreterms', c.version, current_version, c.temp_dir)
     create_and_add_index(source, 'dvupdates', c.version, current_version, c.temp_dir)
     create_and_add_index(source, 'emptyIndex', c.version, current_version, c.temp_dir)


Mime
View raw message