Skip to content

fault_injection_fs: avoid division by zero in DropRandomUnsyncedData() #15

@Yuval-Ariel

Description

@Yuval-Ariel

When there's no data in the buffer, there's nothing to drop anyway, and
providing 0 to the rand->Uniform() function results in a division by zero
error (SIGFPE), so just check and do nothing in that case.

Metadata

Metadata

Assignees

Labels

Upstreamablecan be upstreamed to RocksDBbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions