| 636 |
{ |
{ |
| 637 |
SYS_child_process_count++; |
SYS_child_process_count++; |
| 638 |
section_list_loader_pid = pid; |
section_list_loader_pid = pid; |
| 639 |
log_std("Section list loader process (%d) start\n", pid); |
log_common("Section list loader process (%d) start\n", pid); |
| 640 |
return 0; |
return 0; |
| 641 |
} |
} |
| 642 |
else if (pid < 0) // Error |
else if (pid < 0) // Error |
| 692 |
load_count = article_block_article_count() - article_count; |
load_count = article_block_article_count() - article_count; |
| 693 |
if (load_count > 0) |
if (load_count > 0) |
| 694 |
{ |
{ |
| 695 |
log_std("Incrementally load %d articles, last_aid = %d\n", load_count, article_block_last_aid()); |
log_common("Incrementally load %d articles, last_aid = %d\n", load_count, article_block_last_aid()); |
| 696 |
} |
} |
| 697 |
|
|
| 698 |
if (SYS_section_list_reload) |
if (SYS_section_list_reload) |
| 718 |
|
|
| 719 |
if (last_article_op_log_mid > last_mid) |
if (last_article_op_log_mid > last_mid) |
| 720 |
{ |
{ |
| 721 |
log_std("Proceeded %d article logs, last_mid = %d\n", last_article_op_log_mid - last_mid, last_article_op_log_mid); |
log_common("Proceeded %d article logs, last_mid = %d\n", last_article_op_log_mid - last_mid, last_article_op_log_mid); |
| 722 |
} |
} |
| 723 |
|
|
| 724 |
if (SYS_section_list_reload) |
if (SYS_section_list_reload) |
| 739 |
detach_article_block_shm(); |
detach_article_block_shm(); |
| 740 |
detach_trie_dict_shm(); |
detach_trie_dict_shm(); |
| 741 |
|
|
| 742 |
log_std("Section list loader process exit normally\n"); |
log_common("Section list loader process exit normally\n"); |
| 743 |
log_end(); |
log_end(); |
| 744 |
|
|
| 745 |
section_list_loader_pid = 0; |
section_list_loader_pid = 0; |