zebra_begin_trans got extra "write" flag. zebra_begin_read
[idzebra-moved-to-github.git] / index / index.h
index 90cdd02..8b21f91 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: index.h,v 1.91 2002-11-15 21:26:00 adam Exp $
+/* $Id: index.h,v 1.94 2003-03-04 23:30:20 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
    Index Data Aps
 
@@ -170,8 +170,6 @@ void zebra_load_atts (data1_handle dh, Res res);
 int key_SU_decode (int *ch, const unsigned char *out);
 int key_SU_encode (int ch, char *out);
 
-// extern Res common_resource;
-
 #define ENCODE_BUFLEN 768
 struct encode_info {
     int  sysno;  /* previously written values for delta-compress */
@@ -298,6 +296,8 @@ struct zebra_session {
     ZebraLockHandle lock_shadow;
 
     int trans_no;
+    int trans_w_no;
+
     int destroyed;
     ZebraSet sets;
     Res res;
@@ -402,6 +402,7 @@ void zebraRankDestroy (struct zebra_register *reg);
 int att_getentbyatt(ZebraHandle zh, attent *res, oid_value set, int att);
 
 extern struct rank_control *rank1_class;
+extern struct rank_control *rankzv_class;
 
 int zebra_record_fetch (ZebraHandle zh, int sysno, int score, ODR stream,
                        oid_value input_format, Z_RecordComposition *comp,
@@ -416,6 +417,7 @@ int bufferExtractRecord (ZebraHandle zh,
                         struct recordGroup *rGroup, 
                         int delete_flag,
                         int test_mode, 
+                        const char *recordType,
                         int *sysno,
                         const char *match_criteria,
                         const char *fname);