git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] reftable/stack: fsync "tables.list" during compaction

From
Patrick Steinhardt <ps@pks.im>
Date
Jan 31, 2024, 05:46 UTC
Message-ID
<ZbnevPIN5cudLU5w@tanuki>
In-Reply-To
<CAGAWz+4wyd13UYRH3ZSSZEq1Y=5HE_p+qaXeOJS-ENMpWoLabA@mail.gmail.com>
On Tue, Jan 30, 2024 at 01:04:46PM -0600, Justin Tobler wrote:
Show 14 quoted lines
> On Mon, Jan 29, 2024 at 11:23 PM Patrick Steinhardt <ps@pks.im> wrote:
> >
> > In 1df18a1c9a (reftable: honor core.fsync, 2024-01-23), we have added
> > code to fsync both newly written reftables as well as "tables.list" to
> > disk. But there are two code paths where "tables.list" is being written:
> >
> >   - When appending a new table due to a normal ref update.
> >
> >   - When compacting a range of tables during compaction.
> >
> > We have only addressed the former code path, but do not yet sync the new
> > "tables.list" file in the latter. Fix this ommission.
> 
> nit: s/ommission/omission
I knew this looked weird when writing it! Should've looked it up.
Show 6 quoted lines
> > Note that we are not yet adding any tests. These tests will be added
> > once the "reftable" backend has been upstreamed.
> >
> 
> Nice catch! I noticed a small typo in the commit message but otherwise looks
> good to me.

Thanks. I'll refrain from sending out a new version for this typo alone, but will fix it if other feedback requires a second iteration.

Patrick
Previous: Justin Tobler
Message 3 of 3 in “reftable/stack: fsync "tables.list" during compaction”
  1. reftable/stack: fsync "tables.list" during compactionPatrick Steinhardt, Jan 30, 2024
  2. Justin ToblerJan 30, 2024
  3. Patrick SteinhardtJan 31, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.