dovecot-2.1: istream-seekable: If we panic about stream not bein...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Feb 2 17:20:08 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/f31a227ae381
changeset: 14062:f31a227ae381
user: Timo Sirainen <tss at iki.fi>
date: Thu Feb 02 17:20:02 2012 +0200
description:
istream-seekable: If we panic about stream not being seekable, log the stream name/offset.
diffstat:
src/lib/istream-seekable.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r a5aac072bf38 -r f31a227ae381 src/lib/istream-seekable.c
--- a/src/lib/istream-seekable.c Thu Feb 02 17:19:22 2012 +0200
+++ b/src/lib/istream-seekable.c Thu Feb 02 17:20:02 2012 +0200
@@ -321,7 +321,9 @@
if (ret == 0) {
i_panic("i_stream_stat() used for non-blocking "
- "seekable stream");
+ "seekable stream %s offset %"PRIuUOFF_T,
+ i_stream_get_name(sstream->cur_input),
+ sstream->cur_input->v_offset);
}
i_stream_skip(&stream->istream, stream->pos - stream->skip);
i_stream_seek(&stream->istream, old_offset);
More information about the dovecot-cvs
mailing list