X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=index%2Fextract.c;h=d5296a2118e49415c511f163a9dfc2064b89d178;hb=4b7a4c30b843352a948dad6c36053f8dbf99c8f4;hp=5c1f738f51f846748dfe843712e7de13ec35325b;hpb=62f6cad37f14a19d9c1ce763ea54a61b350c7881;p=idzebra-moved-to-github.git diff --git a/index/extract.c b/index/extract.c index 5c1f738..d5296a2 100644 --- a/index/extract.c +++ b/index/extract.c @@ -4,7 +4,15 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: extract.c,v $ - * Revision 1.43 1995-12-11 09:12:46 adam + * Revision 1.45 1995-12-15 12:37:41 adam + * In addRecordKeyAny: Writes key only when attrSet != -1. + * + * Revision 1.44 1995/12/12 16:00:54 adam + * System call sync(2) used after update/commit. + * Locking (based on fcntl) uses F_EXLCK and F_SHLCK instead of F_WRLCK + * and F_RDLCK. + * + * Revision 1.43 1995/12/11 09:12:46 adam * The rec_get function returns NULL if record doesn't exist - will * happen in the server if the result set records have been deleted since * the creation of the set (i.e. the search). @@ -184,7 +192,6 @@ void key_open (int mem) { if (mem < 50000) mem = 50000; - logf (LOG_LOG, "key_open %d", mem); key_buf = xmalloc (mem); ptr_top = mem/sizeof(char*); ptr_i = 0; @@ -311,7 +318,6 @@ void key_flush (void) int key_close (void) { key_flush (); - logf (LOG_LOG, "buf free"); xfree (key_buf); rec_close (&records); dict_close (matchDict); @@ -482,7 +488,8 @@ static void addRecordKeyAny (const RecWord *p) w.attrUse = 1016; addRecordKey (&w); } - addRecordKey (p); + else if (p->attrSet != -1) + addRecordKey (p); }