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.
This commit is contained in:
@@ -5548,7 +5548,6 @@ static int lfs3_btree_commit_(lfs3_t *lfs3,
|
|||||||
// need to limit our bid to an rid in the tree, which
|
// need to limit our bid to an rid in the tree, which
|
||||||
// is what this min is doing
|
// is what this min is doing
|
||||||
lfs3_min(bcommit->bid, btree->r.weight-1),
|
lfs3_min(bcommit->bid, btree->r.weight-1),
|
||||||
// TODO why are we updating commit->bid at this point?
|
|
||||||
&bcommit->bid, NULL, NULL);
|
&bcommit->bid, NULL, NULL);
|
||||||
if (tag < 0) {
|
if (tag < 0) {
|
||||||
LFS3_ASSERT(tag != LFS3_ERR_NOENT);
|
LFS3_ASSERT(tag != LFS3_ERR_NOENT);
|
||||||
|
|||||||
Reference in New Issue
Block a user