From: Johan Herland <johan@herland.net>
To: "brian m. carlson" <sandals@crustytoothpaste.net>,
Johan Herland <johan@herland.net>,
Git mailing list <git@vger.kernel.org>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: [PATCH 2/2] notes.c: fix off-by-one error when decreasing notes fanout
Date: Wed, 5 Feb 2020 18:16:40 +0100 [thread overview]
Message-ID: <CALKQrgcbo-giO=5c=+=KtVxFth0WOB5j+M3Lw26PpLFd+Pqpng@mail.gmail.com> (raw)
In-Reply-To: <20200204010523.GR4113372@camp.crustytoothpaste.net>
On Tue, Feb 4, 2020 at 2:05 AM brian m. carlson
<sandals@crustytoothpaste.net> wrote:
> On 2020-02-03 at 21:04:45, Johan Herland wrote:
> > always follow the ->next pointer from the last non-note we wrote.
> > (This part is was caught by an existing test in t3304.)
>
> I think you have "is was" here. You probably want one or the other.
Will fix.
> > Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>
> > Cc: Brian M. Carlson <sandals@crustytoothpaste.net>
>
> I generally write my name in lower case, but I think typically we prefer
> to omit Cc lines in patches (unlike LKML), so it may just be better to
> remove these lines.
Ack. Will remove.
> > Signed-off-by: Johan Herland <johan@herland.net>
>
> Patch 1 looked good to me. Your explanation here makes sense, but I
> must admit that I still don't understand this code, so I can't give an
> outright approval. I do appreciate that it comes with a test, though.
Thanks for having a look. I must admit it's hard to get back into this
code even though I originally wrote it. I've been trying to prepare a
patch #3 which decreases the fanout more aggressively on notes removal
(having a fanout of 1 in a tree of 17 notes is bit ridiculous, IMHO),
but I'm not yet able to figure something out that behaves in a stable
manner. (I find scenarios where removing a note will switch fanout
from 1 to 0, but removing another note will then switch fanout from 0
back to 1, and so on, and the current notes code does not have these
problems, AFAICS.)
> I haven't tested, but I expect this series will make Dscho's patch
> unnecessary, so I'll drop it in my reroll unless one of you tells me to
> keep it.
Yes, my patch includes Dscho's change. I don't particularly care
whichever lands first, and I can easily rebase on top of yours.
...Johan
--
Johan Herland, <johan@herland.net>
www.herland.net
prev parent reply other threads:[~2020-02-05 17:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-03 21:04 [PATCH 1/2] t3305: check notes fanout more carefully and robustly Johan Herland
2020-02-03 21:04 ` [PATCH 2/2] notes.c: fix off-by-one error when decreasing notes fanout Johan Herland
2020-02-04 1:05 ` brian m. carlson
2020-02-05 17:16 ` Johan Herland [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALKQrgcbo-giO=5c=+=KtVxFth0WOB5j+M3Lw26PpLFd+Pqpng@mail.gmail.com' \
--to=johan@herland.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=sandals@crustytoothpaste.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).