Skip to content

Commit

Permalink
seek to the end of backlog after opening, before reading position
Browse files Browse the repository at this point in the history
  • Loading branch information
codekitchen committed Jun 17, 2011
1 parent 9adbcd0 commit c894c61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tkellem/plugins/backlog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def get_stream(ctx)
# open stream in append-only mode
return @streams[ctx] if @streams[ctx]
stream = @streams[ctx] = File.open(stream_filename(ctx), 'ab')
stream.seek(0, IO::SEEK_END)
@starting_pos[ctx] = stream.pos
stream
end
Expand Down

0 comments on commit c894c61

Please sign in to comment.