Ticket #427: xapian-compact-fix1.patch
File xapian-compact-fix1.patch, 1.4 KB (added by , 14 years ago) |
---|
-
bin/xapian-compact-brass.cc
156 156 size_t tmp = d - key.data(); 157 157 if (!unpack_uint_preserving_sort(&d, e, &firstdid) || d != e) 158 158 throw Xapian::DatabaseCorruptError("Bad postlist key"); 159 key.erase(tmp );159 key.erase(tmp - 1); 160 160 } 161 161 firstdid += offset; 162 162 return true; -
bin/xapian-compact-chert.cc
156 156 size_t tmp = d - key.data(); 157 157 if (!unpack_uint_preserving_sort(&d, e, &firstdid) || d != e) 158 158 throw Xapian::DatabaseCorruptError("Bad postlist key"); 159 key.erase(tmp );159 key.erase(tmp - 1); 160 160 } 161 161 firstdid += offset; 162 162 return true; -
bin/xapian-compact-flint.cc
113 113 size_t tmp = d - key.data(); 114 114 if (!F_unpack_uint_preserving_sort(&d, e, &firstdid) || d != e) 115 115 throw Xapian::DatabaseCorruptError("Bad postlist key"); 116 key.erase(tmp );116 key.erase(tmp - 1); 117 117 } 118 118 firstdid += offset; 119 119 return true;