From e3e719a0f584ef5bf8b73787cbcfaa4a651d2cee Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Sun, 20 Jul 2025 12:35:14 -0500 Subject: [PATCH] btree: Dropped bcommit->bid TODO comment I was confused, but this commit->bid update is used to limit the commit->bid to the btree weight. Note we limit the bid after storing it as the initial rid. --- lfs3.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lfs3.c b/lfs3.c index d60b325f..0235eaa7 100644 --- a/lfs3.c +++ b/lfs3.c @@ -5548,7 +5548,6 @@ static int lfs3_btree_commit_(lfs3_t *lfs3, // need to limit our bid to an rid in the tree, which // is what this min is doing lfs3_min(bcommit->bid, btree->r.weight-1), - // TODO why are we updating commit->bid at this point? &bcommit->bid, NULL, NULL); if (tag < 0) { LFS3_ASSERT(tag != LFS3_ERR_NOENT);