Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1232

Use segments generation instead of version

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.1, 2.2, 2.3, 2.3.1
    • 2.4
    • core/index
    • None
    • New

    Description

      Right now the segments file stores generation, a long starting with 0
      that increments by 1 with each commit, and version, a long starting
      with System.currentTimeMillis() that also increments by 1 with each
      commit.

      I think they are redundant so we can replace all methods/uses of
      version with generation instead.

      Spinoff from LUCENE-1228.

      Attachments

        1. check.version.vs.gen.diff
          2 kB
          Doron Cohen
        2. LUCENE-1232.dc.patch
          7 kB
          Doron Cohen
        3. LUCENE-1232.patch
          5 kB
          Michael McCandless

        Issue Links

          Activity

            People

              mikemccand Michael McCandless
              mikemccand Michael McCandless
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: