mail-cache.c revision fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8
0N/A/* Copyright (C) 2003-2004 Timo Sirainen */ 0N/A 0, 0, 0, 0, 0, 0, 0, 0,
115N/A (
unsigned int)-
1, (
unsigned int)-
1, (
unsigned int)-
1, (
unsigned int)-
1,
13N/A (
unsigned int)-
1, (
unsigned int)-
1, (
unsigned int)-
1, (
unsigned int)-
1,
0N/A (
unsigned int)-
1, (
unsigned int)-
1, (
unsigned int)-
1, (
unsigned int)-
1,
0N/A (
unsigned int)-
1, (
unsigned int)-
1, (
unsigned int)-
1, (
unsigned int)-
1,
0N/A (
unsigned int)-
1, (
unsigned int)-
1, (
unsigned int)-
1, (
unsigned int)-
1 0N/A for (i = 0,
num =
1; i <
32; i++,
num <<=
1) {
0N/A "%s failed with index cache file %s: %m",
116N/A /* unusable, we're just waiting for compression */ 177N/A /* still different - maybe a race condition or maybe the 177N/A file_seq really is corrupted. either way, this shouldn't 177N/A happen often so we'll just mark cache to be compressed 177N/A later which fixes this. */ 0N/A /* check that the header is still ok */ 295N/A /* we've updated used_file_size, do nothing */ 295N/A /* only check the header if we're locked */ 301N/A /* in the middle of transaction - write the changes */ 301N/A /* unusable, waiting for compression */ 301N/A /* map the whole file */ /* failed for some reason - doesn't really matter, it's disabled for now. */ /* we want the latest cache file */ for (i = 0; i <
3; i++) {
/* okay, so it was just compressed. try again. */