journal: fix bisection algorithm

This commit is contained in:
Lennart Poettering
2012-08-19 15:16:32 +02:00
parent fc89a13992
commit a2e99cdf94
+5 -1
View File
@@ -266,10 +266,14 @@ static int contains_uint64(MMapCache *m, int fd, uint64_t n, uint64_t p) {
if (*z == p)
return 1;
if (a + 1 >= b)
return 0;
if (p < *z)
b = c;
else
else {
a = c;
}
}
return 0;