Fixed missed opportunity for wide tags in btree set

This code was written before we had wide tags, which were introduced for
this exact, and common, use case of needing to replace a range of tag
subtypes. Must have just been missed.
This commit is contained in:
Christopher Haster
2023-08-11 14:02:37 -05:00
parent e5a4b3e50d
commit 5541ad0c00
+1 -4
View File
@@ -4531,10 +4531,7 @@ static int lfsr_btree_set(lfs_t *lfs, lfsr_btree_t *btree,
// of the rest
int degenerate = lfsr_btree_commit(lfs, btree, bid, 1, &rbyd,
LFSR_ATTRS(
(tag != rtag
? LFSR_ATTR(rid, TAG(lfsr_tag_setrm(rtag)), 0, NULL)
: LFSR_ATTR_NOOP),
LFSR_ATTR(rid, TAG(tag), 0, DATA(data)),
LFSR_ATTR(rid, WIDE(TAG(tag)), 0, DATA(data)),
LFSR_ATTR(rid, GROW(RM), +weight-rweight, NULL)));
if (degenerate < 0) {
return degenerate;