Ticket #143: flint_alltermslist_robustness.patch

File flint_alltermslist_robustness.patch, 634 bytes (added by Richard Boulton, 18 years ago)

Patch to make alltermslist ignore extra items at start of postlist table

  • backends/flint/flint_alltermslist.h

     
    7878        if (approx_size) --approx_size;
    7979
    8080        // Seek to the metainfo key, so the first next will advance us to the
    81         // first real key.
     81        // first real key.  "\x00\xff" is the first potentially valid key for a
     82        // posting entry.
    8283        cursor = pltab->cursor_get();
    83         cursor->find_entry(string("", 1));
     84        if (cursor->find_entry(string("\x00\xff", 2)))
     85            cursor->prev();
    8486    }
    8587
    8688    /// Destructor.