<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-dirmgr/src, branch arti-v1.2.5</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.5</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.5'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-06-18T14:26:40Z</updated>
<entry>
<title>Merge branch 'tolerate_missing_blob' into 'main'</title>
<updated>2024-06-18T14:26:40Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-06-18T14:26:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=291b8bfc4dfad6a7de8e76d8437c90703c10e750'/>
<id>urn:sha1:291b8bfc4dfad6a7de8e76d8437c90703c10e750</id>
<content type='text'>
dirmgr::storage: Treat a missing blob file as an absent object.

Closes #1466

See merge request tpo/core/arti!2200</content>
</entry>
<entry>
<title>sqlite: (style) Use consistent casing on "ExtDocs"</title>
<updated>2024-06-18T13:48:49Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-06-18T13:48:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=83430d6b2da2cfc3d4dc6ea4c621c07d1f80357e'/>
<id>urn:sha1:83430d6b2da2cfc3d4dc6ea4c621c07d1f80357e</id>
<content type='text'>
SQL is case-insensitive, but it is still nice to be consistent.
</content>
</entry>
<entry>
<title>dirmgr: Limit the number of mds that we will fetch from sqlite at once.</title>
<updated>2024-06-12T16:48:27Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-06-12T16:48:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=efed73632bfb45ce2300c81b2d5b9f8ed356535e'/>
<id>urn:sha1:efed73632bfb45ce2300c81b2d5b9f8ed356535e</id>
<content type='text'>
This should help limit our memory usage when restarting from cache.

Possible (imperfect) solution for #1027.
</content>
</entry>
<entry>
<title>dirmgr: split out the loading part of load_once into a new function.</title>
<updated>2024-06-12T16:43:28Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-06-12T16:43:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=54317e23971bcfa079df6eb70ef7017b1204e5b9'/>
<id>urn:sha1:54317e23971bcfa079df6eb70ef7017b1204e5b9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>storage: Remove orphaned files from dir_blobs</title>
<updated>2024-06-12T15:26:12Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-06-12T15:26:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8a7e0b6225a1a70803457f4cd13bda0c4b47f024'/>
<id>urn:sha1:8a7e0b6225a1a70803457f4cd13bda0c4b47f024</id>
<content type='text'>
This patch removes files from dir_blobs if they are not referenced
from the database, or if their filenames are not valid UTF-8.
(If they were not valid UTF-8, we wouldn't have put them in our
database.)

To ensure that there can't be any race conditions, we only do this
when the file is a bit old.
</content>
</entry>
<entry>
<title>dirmgr: create temporary testing stores with correct paths.</title>
<updated>2024-06-12T15:12:01Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-06-12T15:12:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=06f9af078639d650df6c9b7add640b95cf772368'/>
<id>urn:sha1:06f9af078639d650df6c9b7add640b95cf772368</id>
<content type='text'>
Previously, we were putting an (optional) db.sql file and our blobs
into the same path, which is not what we do outside of our tests.
</content>
</entry>
<entry>
<title>dirmgr::storage: Enable foreign keys on our sqlite connections.</title>
<updated>2024-06-12T14:19:36Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-06-12T14:19:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=16f8757cc5173788563931c575b507a009ed0f28'/>
<id>urn:sha1:16f8757cc5173788563931c575b507a009ed0f28</id>
<content type='text'>
Without this, "ON DELETE CASCADE" will do nothing.

Part of fixing #1466.
</content>
</entry>
<entry>
<title>dirmgr::storage: Treat a missing blob file as an absent object.</title>
<updated>2024-06-12T14:18:20Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-06-12T13:51:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8801c121ad79a7a59058aef69eff70c9537df1ee'/>
<id>urn:sha1:8801c121ad79a7a59058aef69eff70c9537df1ee</id>
<content type='text'>
Previously it was counted as a hard error, which would cause an
absolute failure to start if a blob file had been deleted improperly
-- for example, by a renegade cache-cleaner that had decided to
remove the largest files it could find.

Upon encountering a missing blob, we remove it from the database as
well: if we did not, then unavailable consensuses could still cause
us to try to fetch consensus diffs, because their rows would still
be present.

Fixes #1466.
</content>
</entry>
<entry>
<title>dirauth: Add new faravahar authority</title>
<updated>2024-05-30T13:13:19Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2024-05-30T13:13:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0a545868527fe6af8a7e20547b3a2e97263e0e22'/>
<id>urn:sha1:0a545868527fe6af8a7e20547b3a2e97263e0e22</id>
<content type='text'>
Related to C-tor MR:
https://gitlab.torproject.org/tpo/core/tor/-/merge_requests/819

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>DirMgr: Clarify dead_code status on storage methods.</title>
<updated>2024-05-14T14:49:01Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-05-14T14:49:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1657ca14bc5763fbd5c04e92ef535b11b4d96f43'/>
<id>urn:sha1:1657ca14bc5763fbd5c04e92ef535b11b4d96f43</id>
<content type='text'>
Per comments on #1383, we're keeping these methods.

This commit replaces the "TODO" comments with comments explaining
why it's okay that this methods are unused.

Part of #1383.
</content>
</entry>
</feed>
