| 129 |
|
|
| 130 |
if (header_len != cache.line_offsets[header_line_cnt]) |
if (header_len != cache.line_offsets[header_line_cnt]) |
| 131 |
{ |
{ |
| 132 |
#ifdef _DEBUG |
log_debug("Header of article(aid=%d) is truncated from %ld to %ld\n, body_line=%ld, body_line_limit=%ld", |
|
log_error("Header of article(aid=%d) is truncated from %ld to %ld\n, body_line=%ld, body_line_limit=%ld", |
|
| 133 |
p_article->aid, header_len, cache.line_offsets[header_line_cnt], |
p_article->aid, header_len, cache.line_offsets[header_line_cnt], |
| 134 |
header_line_cnt, MAX_SPLIT_FILE_LINES); |
header_line_cnt, MAX_SPLIT_FILE_LINES); |
|
#endif |
|
| 135 |
header_len = (size_t)cache.line_offsets[header_line_cnt]; |
header_len = (size_t)cache.line_offsets[header_line_cnt]; |
| 136 |
} |
} |
| 137 |
|
|
| 145 |
|
|
| 146 |
if (body_len != (size_t)cache.line_offsets[cache.line_total]) |
if (body_len != (size_t)cache.line_offsets[cache.line_total]) |
| 147 |
{ |
{ |
| 148 |
#ifdef _DEBUG |
log_debug("Body of article(aid=%d) is truncated from %ld to %ld, body_line=%ld, body_line_limit=%ld\n", |
|
log_error("Body of article(aid=%d) is truncated from %ld to %ld, body_line=%ld, body_line_limit=%ld\n", |
|
| 149 |
p_article->aid, body_len, cache.line_offsets[cache.line_total], |
p_article->aid, body_len, cache.line_offsets[cache.line_total], |
| 150 |
body_line_cnt, MAX_SPLIT_FILE_LINES - header_line_cnt); |
body_line_cnt, MAX_SPLIT_FILE_LINES - header_line_cnt); |
|
#endif |
|
| 151 |
cache.data_len = header_len + (size_t)(cache.line_offsets[cache.line_total]); |
cache.data_len = header_len + (size_t)(cache.line_offsets[cache.line_total]); |
| 152 |
} |
} |
| 153 |
|
|
| 161 |
|
|
| 162 |
if (footer_len != cache.line_offsets[cache.line_total + footer_line_cnt]) |
if (footer_len != cache.line_offsets[cache.line_total + footer_line_cnt]) |
| 163 |
{ |
{ |
| 164 |
#ifdef _DEBUG |
log_debug("Footer of article(aid=%d) is truncated from %ld to %ld, footer_line=%ld, footer_line_limit=%ld\n", |
|
log_error("Footer of article(aid=%d) is truncated from %ld to %ld, footer_line=%ld, footer_line_limit=%ld\n", |
|
| 165 |
p_article->aid, footer_len, cache.line_offsets[cache.line_total + footer_line_cnt], |
p_article->aid, footer_len, cache.line_offsets[cache.line_total + footer_line_cnt], |
| 166 |
footer_line_cnt, MAX_SPLIT_FILE_LINES - cache.line_total); |
footer_line_cnt, MAX_SPLIT_FILE_LINES - cache.line_total); |
|
#endif |
|
| 167 |
footer_len = (size_t)(cache.line_offsets[cache.line_total + footer_line_cnt]); |
footer_len = (size_t)(cache.line_offsets[cache.line_total + footer_line_cnt]); |
| 168 |
} |
} |
| 169 |
|
|