/[LeafOK_CVS]/lbbs/src/section_list_loader.c
ViewVC logotype

Diff of /lbbs/src/section_list_loader.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.11 by sysadm, Thu May 29 09:44:01 2025 UTC Revision 1.13 by sysadm, Sat May 31 01:37:18 2025 UTC
# Line 288  int append_articles_from_db(int32_t star Line 288  int append_articles_from_db(int32_t star
288    
289                  article_count++;                  article_count++;
290    
291                  if (article_cache_generate(VAR_ARTICLE_CACHE_DIR, &article, row[i++]) < 0)                  if (article_cache_generate(VAR_ARTICLE_CACHE_DIR, &article, p_section, row[i++], 0) < 0)
292                  {                  {
293                          log_error("article_cache_generate(aid=%d, cid=%d) error\n", article.aid, article.cid);                          log_error("article_cache_generate(aid=%d, cid=%d) error\n", article.aid, article.cid);
294                          ret = -4;                          ret = -4;
# Line 478  int apply_article_op_log_from_db(int op_ Line 478  int apply_article_op_log_from_db(int op_
478                                  ret = -3;                                  ret = -3;
479                                  break;                                  break;
480                          }                          }
481                          if ((rs2 = mysql_store_result(db)) == NULL)                          if ((rs2 = mysql_use_result(db)) == NULL)
482                          {                          {
483                                  log_error("Get article data failed\n");                                  log_error("Get article data failed\n");
484                                  ret = -3;                                  ret = -3;
# Line 488  int apply_article_op_log_from_db(int op_ Line 488  int apply_article_op_log_from_db(int op_
488                          {                          {
489                                  p_article->cid = atoi(row2[0]);                                  p_article->cid = atoi(row2[0]);
490    
491                                  if (article_cache_generate(VAR_ARTICLE_CACHE_DIR, p_article, row2[1]) < 0)                                  if (article_cache_generate(VAR_ARTICLE_CACHE_DIR, p_article, p_section, row2[1], 0) < 0)
492                                  {                                  {
493                                          log_error("article_cache_generate(aid=%d, cid=%d) error\n", p_article->aid, p_article->cid);                                          log_error("article_cache_generate(aid=%d, cid=%d) error\n", p_article->aid, p_article->cid);
494                                          ret = -4;                                          ret = -4;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1