Rev 752: tdb_freelist_size was reporting 1 more than correct size
in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Wed Jan 9 22:42:44 GMT 2008
------------------------------------------------------------
revno: 752
revision-id:tridge at samba.org-20080109224244-5g9za2b00oezj7w8
parent: tridge at samba.org-20080109210454-lgp131hsvrt1q69q
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge.stable
timestamp: Thu 2008-01-10 09:42:44 +1100
message:
tdb_freelist_size was reporting 1 more than correct size
modified:
lib/tdb/common/freelist.c freelist.c-20070220022425-m1wibgjq7n5hahs6-4
=== modified file 'lib/tdb/common/freelist.c'
--- a/lib/tdb/common/freelist.c 2008-01-09 04:33:10 +0000
+++ b/lib/tdb/common/freelist.c 2008-01-09 22:42:44 +0000
@@ -372,9 +372,8 @@
}
ptr = FREELIST_TOP;
- while (ptr != 0 && tdb_ofs_read(tdb, ptr, &ptr) == 0) {
+ while (tdb_ofs_read(tdb, ptr, &ptr) == 0 && ptr != 0) {
count++;
-
}
tdb_unlock(tdb, -1, F_RDLCK);
More information about the samba-cvs
mailing list