[Namazu-cvs 820] r256 - Search-Namazu/trunk/Search-Namazu

cvsd @ vaj.namazu.org cvsd @ vaj.namazu.org
2006年 5月 22日 (月) 13:57:24 JST


Author: knok
Date: 2006-05-22 13:57:23 +0900 (Mon, 22 May 2006)
New Revision: 256

Modified:
   Search-Namazu/trunk/Search-Namazu/ChangeLog
   Search-Namazu/trunk/Search-Namazu/Namazu.xs
Log:
Changed status setting rule.


Modified: Search-Namazu/trunk/Search-Namazu/ChangeLog
===================================================================
--- Search-Namazu/trunk/Search-Namazu/ChangeLog	2006-05-17 04:33:58 UTC (rev 255)
+++ Search-Namazu/trunk/Search-Namazu/ChangeLog	2006-05-22 04:57:23 UTC (rev 256)
@@ -1,3 +1,7 @@
+2006-05-22  NOKUBI Takatsugu  <knok @ daionet.gr.jp>
+
+	* Namazu.xs (set_status): Changed status setting rule.
+
 2006-04-05  NOKUBI Takatsugu  <knok @ daionet.gr.jp>
 
 	* Namazu.xs: Fixed search status info.

Modified: Search-Namazu/trunk/Search-Namazu/Namazu.xs
===================================================================
--- Search-Namazu/trunk/Search-Namazu/Namazu.xs	2006-05-17 04:33:58 UTC (rev 255)
+++ Search-Namazu/trunk/Search-Namazu/Namazu.xs	2006-05-22 04:57:23 UTC (rev 256)
@@ -75,8 +75,10 @@
 	for (idxid = 0; idxid < nmz_get_idxnum(); idxid ++) {
 	    struct nmz_hitnumlist *hnlist = nmz_get_idx_hitnumlist(idxid);
 	    while (hnlist != NULL) {
-	    	  if (hnlist->stat != SUCCESS)
-		     status = hnlist->stat;
+	    	  if (hnlist->stat == SUCCESS) {
+		     status = SUCCESS;
+		     break;
+		  }
 	    	  hnlist = hnlist->next;
 	    }
 	}




Namazu-cvs メーリングリストの案内