svnno****@sourc*****
svnno****@sourc*****
Tue Feb 26 03:56:35 JST 2008
Revision: 3399 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3399 Author: pal_gene Date: 2008-02-26 03:56:35 +0900 (Tue, 26 Feb 2008) Log Message: ----------- *report db error recovery. modified: module/search/kz-hyper-estraier-search.c Modified Paths: -------------- kazehakase/trunk/module/search/kz-hyper-estraier-search.c Modified: kazehakase/trunk/module/search/kz-hyper-estraier-search.c =================================================================== --- kazehakase/trunk/module/search/kz-hyper-estraier-search.c 2008-02-25 18:56:31 UTC (rev 3398) +++ kazehakase/trunk/module/search/kz-hyper-estraier-search.c 2008-02-25 18:56:35 UTC (rev 3399) @@ -481,10 +481,12 @@ g_warning("register error: %s", est_err_msg(est_mtdb_error(he_search->db))); g_warning("retry..."); est_mtdb_sync(he_search->db); - if(est_mtdb_put_doc(he_search->db, doc, ESTPDCLEAN) != 0) { + if(est_mtdb_put_doc(he_search->db, doc, ESTPDCLEAN)) { + g_warning("succeed!"); + } else { g_warning("register error: %s", est_err_msg(est_mtdb_error(he_search->db))); g_warning("drop %s,%s\n", ESTDATTRURI, est_doc_attr(doc, ESTDATTRURI)); - } + } } est_doc_delete(doc);