<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/lib/database.cc, branch debian/0.17-2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.17-2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.17-2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2013-11-20T00:15:02Z</updated>
<entry>
<title>compact: improve error messages on failures after compaction</title>
<updated>2013-11-20T00:15:02Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2013-11-14T22:03:27Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2fd7ef64baf02892a7bebfb57d593afb086145ef'/>
<id>urn:sha1:2fd7ef64baf02892a7bebfb57d593afb086145ef</id>
<content type='text'>
The error messages written during the steps replacing old
database with new now includes relevant paths and strerror.
</content>
</entry>
<entry>
<title>compact: unconditionally remove old wip database compact directory</title>
<updated>2013-11-20T00:14:28Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2013-11-14T22:03:26Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6452ae0fcb0a2ee45a47144da71a6de9d8dace2c'/>
<id>urn:sha1:6452ae0fcb0a2ee45a47144da71a6de9d8dace2c</id>
<content type='text'>
In case previous notmuch compact has been interrupted there is old
work-in-progress database compact directory partially filled. Remove
it just before starting to fill the directory with new files.
</content>
</entry>
<entry>
<title>compact: preserve backup database until compacted database is in place</title>
<updated>2013-11-20T00:13:25Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2013-11-14T22:03:25Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=cb6cc296e27fdab85faa4bdd670eda2e0c53b8c2'/>
<id>urn:sha1:cb6cc296e27fdab85faa4bdd670eda2e0c53b8c2</id>
<content type='text'>
It is less error prone and window of failure opportunity is smaller
if the old (backup) database is always renamed (instead of sometimes
rmtree'd) before new (compacted) database is put into its place.
Finally rmtree() old database in case old database backup is not kept.
</content>
</entry>
<entry>
<title>compact: catch Xapian::Error consistently</title>
<updated>2013-11-18T00:25:43Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2013-11-13T17:02:44Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=19a89753ca20b269a131e747238925cce254c627'/>
<id>urn:sha1:19a89753ca20b269a131e747238925cce254c627</id>
<content type='text'>
catch Xapian::Error in compact code in lib/database.cc to be consistent
with other code in addition to not making software crash on uncaught
other Xapian error.
</content>
</entry>
<entry>
<title>compact: tidy formatting</title>
<updated>2013-11-18T00:25:25Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2013-11-13T17:02:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4d5986e8ad671c1f5504894af6fbe37ba314bed8'/>
<id>urn:sha1:4d5986e8ad671c1f5504894af6fbe37ba314bed8</id>
<content type='text'>
Notmuch compact code whitespace changes to match devel/STYLE.
</content>
</entry>
<entry>
<title>lib: use the compaction backup path provided by the caller</title>
<updated>2013-11-07T10:51:16Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-11-03T12:24:47Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=00d2ac2b41a6dba060837244ee87edce2fd1e465'/>
<id>urn:sha1:00d2ac2b41a6dba060837244ee87edce2fd1e465</id>
<content type='text'>
The extra path component added by the lib is a magic value that the
caller just has to know. This is demonstrated by the current code,
which indeed has "xapian.old" both sides of the interface. Use the
backup path provided by the lib caller verbatim, without adding
anything to it.
</content>
</entry>
<entry>
<title>lib: add closure parameter to compact status update callback</title>
<updated>2013-11-07T10:46:42Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-11-03T12:24:45Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=180dba66e47a5257b2cdf2f1ceb59cc8fa5a69d4'/>
<id>urn:sha1:180dba66e47a5257b2cdf2f1ceb59cc8fa5a69d4</id>
<content type='text'>
This provides much more flexibility for the caller.
</content>
</entry>
<entry>
<title>lib: do not leak the database in compaction</title>
<updated>2013-11-07T10:46:25Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-11-03T12:24:44Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=35ca5feb28a6e52851ba61ea63478ade40991558'/>
<id>urn:sha1:35ca5feb28a6e52851ba61ea63478ade40991558</id>
<content type='text'>
Destroy instead of close the database after compaction, and also on
error path, to not leak the database.
</content>
</entry>
<entry>
<title>lib: check talloc success in compact</title>
<updated>2013-11-06T21:49:46Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-11-03T12:24:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a95dbba1562a4685c73f86fb30380e6663cae894'/>
<id>urn:sha1:a95dbba1562a4685c73f86fb30380e6663cae894</id>
<content type='text'>
In line with the allocation checks all around.
</content>
</entry>
<entry>
<title>lib: construct compactor within try block to catch any exceptions</title>
<updated>2013-11-06T21:49:36Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2013-11-03T12:24:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8e4e537ceefec51fc811d0be3027572a904ba38c'/>
<id>urn:sha1:8e4e537ceefec51fc811d0be3027572a904ba38c</id>
<content type='text'>
Constructors may also throw exceptions. Catch them.
</content>
</entry>
</feed>
