couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lehnardt (Closed) (JIRA)" <>
Subject [jira] [Closed] (COUCHDB-887) _log handler has very odd semantics for bytes/offset, probably a bug
Date Sat, 29 Oct 2011 19:35:32 GMT


Jan Lehnardt closed COUCHDB-887.

    Resolution: Not A Problem

I don't follow, the way I designed this was:
 - start reading from the end
 - if `offset` is specified, seek `offset` bytes forward into the file
 - read from file until `bytes` bytes are returned
 - stop

Please reopen if anyone can demonstrate that the above does not work.
> _log handler has very odd semantics for bytes/offset, probably a bug
> --------------------------------------------------------------------
>                 Key: COUCHDB-887
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 0.11, 0.11.1, 0.11.2, 1.0, 1.0.1
>            Reporter: Nuutti Kotivuori
>            Priority: Trivial
>         Attachments: couch_log.erl.diff
> 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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message