Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: kinosearch: commits

r3883 - trunk/c_src/KinoSearch/Posting

 

 

kinosearch commits RSS feed   Index | Next | Previous | View Threaded


marvin at rectangular

Sep 19, 2008, 5:26 PM

Post #1 of 1 (3825 views)
Permalink
r3883 - trunk/c_src/KinoSearch/Posting

Author: creamyg
Date: 2008-09-19 17:26:50 -0700 (Fri, 19 Sep 2008)
New Revision: 3883

Modified:
trunk/c_src/KinoSearch/Posting/ScorePosting.c
Log:
Fix bug in ScorePost_Read() where realloc() was being called every time rather
than only when the buffer needed to be enlarged.


Modified: trunk/c_src/KinoSearch/Posting/ScorePosting.c
===================================================================
--- trunk/c_src/KinoSearch/Posting/ScorePosting.c 2008-09-19 04:20:03 UTC (rev 3882)
+++ trunk/c_src/KinoSearch/Posting/ScorePosting.c 2008-09-20 00:26:50 UTC (rev 3883)
@@ -145,6 +145,7 @@
num_prox = self->freq;
if (num_prox > self->prox_cap) {
self->prox = REALLOCATE(self->prox, num_prox, u32_t);
+ self->prox_cap = num_prox;
}
positions = self->prox;



_______________________________________________
kinosearch-commits mailing list
kinosearch-commits [at] rectangular
http://www.rectangular.com/mailman/listinfo/kinosearch-commits

kinosearch commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.