Uploaded image for project: 'HTrace'
  1. HTrace
  2. HTRACE-304

htraced: fix bug with GREATER_THAN queries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1
    • htraced
    • None
    • 4.1

    Description

      htraced has a bug with greater_than queries.

      Leveldb exposes a sorted map interface. It supports seeking to a specific key, but not to a position "greater than" a specific key. The code right now for greater_than assumes that if after the leveldb seek, it sees an equivalent key, it only needs to do one step forward to get to the keys which it should be able to return. However, it there are multiple "equal" entries, greater_than may have to do multiple seeks.

      Attachments

        1. HTRACE-304.001.patch
          6 kB
          Colin McCabe
        2. HTRACE-304.002.patch
          6 kB
          Colin McCabe
        3. HTRACE-304.003.patch
          7 kB
          Colin McCabe

        Activity

          People

            cmccabe Colin McCabe
            cmccabe Colin McCabe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: