| 74 |
log_error("article_block_find_by_index(index=%d) error\n", i); |
log_error("article_block_find_by_index(index=%d) error\n", i); |
| 75 |
break; |
break; |
| 76 |
} |
} |
| 77 |
|
|
| 78 |
|
if (p_article->visible == 0) |
| 79 |
|
{ |
| 80 |
|
continue; |
| 81 |
|
} |
| 82 |
|
|
| 83 |
if (p_article->uid > p_map->last_uid) |
if (p_article->uid > p_map->last_uid) |
| 84 |
{ |
{ |
| 85 |
#ifdef _DEBUG |
#ifdef _DEBUG |
| 86 |
log_error("uid=%d of article(aid=%d) is greater than last_uid=%d, waiting for next user list update\n", |
log_error("uid=%d of article(aid=%d) is greater than last_uid=%d\n", |
| 87 |
p_article->uid, p_article->aid, p_map->last_uid); |
p_article->uid, p_article->aid, p_map->last_uid); |
| 88 |
#endif |
#endif |
| 89 |
break; |
continue; |
| 90 |
} |
} |
| 91 |
|
|
| 92 |
if (user_stat_article_cnt_inc(p_map, p_article->uid, 1) < 0) |
if (user_stat_article_cnt_inc(p_map, p_article->uid, 1) < 0) |
| 121 |
mid = (left + right) / 2; |
mid = (left + right) / 2; |
| 122 |
if (uid < p_map->stat_list[mid].uid) |
if (uid < p_map->stat_list[mid].uid) |
| 123 |
{ |
{ |
| 124 |
right = mid; |
right = mid - 1; |
| 125 |
} |
} |
| 126 |
else if (uid > p_map->stat_list[mid].uid) |
else if (uid > p_map->stat_list[mid].uid) |
| 127 |
{ |
{ |
| 163 |
mid = (left + right) / 2; |
mid = (left + right) / 2; |
| 164 |
if (uid < p_map->stat_list[mid].uid) |
if (uid < p_map->stat_list[mid].uid) |
| 165 |
{ |
{ |
| 166 |
right = mid; |
right = mid - 1; |
| 167 |
} |
} |
| 168 |
else if (uid > p_map->stat_list[mid].uid) |
else if (uid > p_map->stat_list[mid].uid) |
| 169 |
{ |
{ |