Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree_fuzz: fix false positive #1906

Merged
merged 2 commits into from
May 2, 2024
Merged

tree_fuzz: fix false positive #1906

merged 2 commits into from
May 2, 2024

Conversation

matklad
Copy link
Member

@matklad matklad commented May 2, 2024

1_000 was an out of thin air constant I used for testing, lets use the correct value here

Seed: ./zig/zig build -Drelease fuzz -- --seed=8888456137543307989 lsm_tree

1_000 was an out of thin air constant I used for testing, lets use
the correct value here

Seed: ./zig/zig build -Drelease fuzz -- --seed=8888456137543307989 lsm_tree
u32,
events_max * @sizeOf(Value),
NodePool.node_size,
) catch unreachable;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fyi we have a stdx.div_ceil that doesn't return an error. (It asserts that the denominator is nonzero.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhhh, I had a vague recollection of that, but grepped for divCeil which didtt' help 🤣

src/lsm/tree_fuzz.zig Outdated Show resolved Hide resolved
sentientwaffle
sentientwaffle previously approved these changes May 2, 2024
@matklad matklad added this pull request to the merge queue May 2, 2024
Merged via the queue into main with commit ce25751 May 2, 2024
25 checks passed
@matklad matklad deleted the matklad/tree-failure branch May 2, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants