[dovecot/core] 6d0e6c: imap: use o_stream_nsend when not checking failure

GitHub noreply at github.com
Fri Dec 23 14:00:12 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 6d0e6c57cf45ad517748cfbb5f3aa3b53e42e3d0
      https://github.com/dovecot/core/commit/6d0e6c57cf45ad517748cfbb5f3aa3b53e42e3d0
  Author: Martti Rannanjärvi <martti.rannanjarvi at dovecot.fi>
  Date:   2016-12-23 (Fri, 23 Dec 2016)

  Changed paths:
    M src/imap/cmd-getmetadata.c
    M src/imap/cmd-thread.c
    M src/imap/imap-master-client.c

  Log Message:
  -----------
  imap: use o_stream_nsend when not checking failure


  Commit: 044b0557e92ae0bb3b25af49d5468bad3d17db43
      https://github.com/dovecot/core/commit/044b0557e92ae0bb3b25af49d5468bad3d17db43
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-23 (Fri, 23 Dec 2016)

  Changed paths:
    M src/lib-index/mail-cache.c

  Log Message:
  -----------
  lib-index: Fix checking if cache file becomes >4GB


  Commit: d7ff3c153fdf39acd70b6883482a0fdbf9d7917f
      https://github.com/dovecot/core/commit/d7ff3c153fdf39acd70b6883482a0fdbf9d7917f
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-23 (Fri, 23 Dec 2016)

  Changed paths:
    M src/lib-fs/fs-randomfail.c

  Log Message:
  -----------
  fs-randomfail: Fix failure handling for fs_read()


  Commit: 405fc7c0f97c04658ccd15202da4b2004ebc082d
      https://github.com/dovecot/core/commit/405fc7c0f97c04658ccd15202da4b2004ebc082d
  Author: Martti Rannanjärvi <martti.rannanjarvi at dovecot.fi>
  Date:   2016-12-23 (Fri, 23 Dec 2016)

  Changed paths:
    M src/stats/client-export.c

  Log Message:
  -----------
  stats: use o_stream_nsend in client-export


  Commit: ce2312763f6b5fd2da8bfb20847b87f29b063fa8
      https://github.com/dovecot/core/commit/ce2312763f6b5fd2da8bfb20847b87f29b063fa8
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-23 (Fri, 23 Dec 2016)

  Changed paths:
    M src/lib-index/mail-transaction-log-file.c

  Log Message:
  -----------
  lib-index: Fix assert-crash if .log creation unexpectedly fails at the end

Pretty much the only reason for this to happen is if the index directory
was deleted while another process still had the index open. Even this
doesn't normally trigger this crash, because there are other checks earlier
that usually catch it. So it crashes only in some race conditions.

Fixes:
Error: rename(.../dovecot.index.log.newlock, .../dovecot.index.log) failed: No such file or directory
Panic: file mail-transaction-log-file.c: line 105 (mail_transaction_log_file_free): assertion failed: (!file->locked)


Compare: https://github.com/dovecot/core/compare/ac63c3ce5a04...ce2312763f6b


More information about the dovecot-cvs mailing list