armon / bloomd

C network daemon for bloom filters
http://armon.github.io/bloomd
Other
1.24k stars 112 forks source link

Fix dirty page handling again, follow-up to af0a1c46 #29

Closed hroptatyr closed 10 years ago

hroptatyr commented 10 years ago

Changeset af0a1c46 fixes dirty pages setting the actual correct bit but in doing so it now updates the wrong byte.

For a page size of 4096 and 8bits per char, the byte updated is off by a factor of 1/8, caused by right-shifting by 3 twice.

hroptatyr commented 10 years ago

Sorry, my bad. The code is correct as is.