]> granicus.if.org Git - mutt/commit
Compress: pull the lock/unlock operations into the open,close,sync operations.
authorKevin McCarthy <kevin@8t8.us>
Mon, 14 Nov 2016 04:02:35 +0000 (20:02 -0800)
committerKevin McCarthy <kevin@8t8.us>
Mon, 14 Nov 2016 04:02:35 +0000 (20:02 -0800)
commitf46e648f568c38b57ada874cea87e561e3a235c7
tree859f3049ae9681199e0175ffcb301de8252067a2
parent2d2b76aeb17b0d6b67eca2d1ed370fec68a8f9d9
Compress: pull the lock/unlock operations into the open,close,sync operations.

Some operations, such as open_append and sync, need an exclusive lock
across a longer period than a single compress/decompress.  Remove it
from the execute_command and pull into the outer callers.  Store lock
information inside compress_info.

Sync and check_mailbox need more fixes, which will be addressed in
subsequent patches.
compress.c