aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/ruby
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@mit.edu>2011-06-11 00:07:54 -0400
committerGravatar David Bremner <bremner@debian.org>2011-09-23 21:50:39 -0400
commitbfe4555325086d5cb99e3962424128f94d1c921d (patch)
tree6f77de81be15220f0ffc2a4f44b92d462dbe57bc /bindings/ruby
parente4379c43e21ff69dcdb66064fe3de83ae0642fc0 (diff)
lib: Remove message document directly after removing the last file name.
Previously, notmuch_database_remove_message would remove the message file name, sync the change to the message document, re-find the message document, and then delete it if there were no more file names. An interruption after sync'ing would result in a file-name-less, permanently un-removable zombie message that would produce errors and odd results in searches. We could wrap this in an atomic section, but it's much simpler to eliminate the round-about approach and just delete the message document instead of sync'ing it if we removed the last filename.
Diffstat (limited to 'bindings/ruby')
0 files changed, 0 insertions, 0 deletions