Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-887

_log handler has very odd semantics for bytes/offset, probably a bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.11, 0.11.1, 0.11.2, 1.0, 1.0.1
    • 1.2, 1.3
    • HTTP Interface
    • None
    • New Contributors Level (Easy)

    Description

      The _log method for couchdb servers has query arguments "bytes" and "offset", but they seem to behave really weirdly. If offset >= bytes, an eof error is returned - otherwise offset is just substracted from bytes and the request behaves identically otherwise.

      A simple fix to the expected behaviour is included - offset counts backwards from bytes.

      Attachments

        1. couch_log.erl.diff
          0.6 kB
          Nuutti Kotivuori

        Activity

          People

            Unassigned Unassigned
            nakedible Nuutti Kotivuori
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: