Project

General

Profile

« Previous | Next » 

Revision 483

Added by berkley over 23 years ago

allowed both indexing threads to run without interfering with each other.

View differences:

DBSAXHandler.java
175 175
  
176 176
  // The run method of xmlIndex thread. It writes XML Index for the document.
177 177
  public void run () {
178
    System.out.println("Jivka's thread is starting");
178 179
    DBSAXNode currNode = null;
179 180
    DBSAXNode prevNode = null;
180 181
    int step = 0;
......
194 195
      }
195 196
    
196 197
      conn.commit();
198
      
199
      System.out.println("Jivka's thread is done executing");
200
      //if this is a package file then write the package info to 
201
      //the xml_relation table. relationHandler checks to see
202
      //if it is a package file so you don't have to do it here.
203
      DocumentImpl xmldoc = new DocumentImpl(conn, docid);
204
      System.out.println("starting chad's thread");
205
      relationHandler rth = new relationHandler(xmldoc, conn);
206
      
207
      util.returnConnection(conn);
197 208
      conn.close();
198
    
209
      //util.closeConnections();
210

  
199 211
    } catch (Exception e) {
200 212
      try {
201 213
        conn.rollback();
......
239 251
         currentDocument.setTitle(new String(cbuf, start, MAXTITLELEN));
240 252
       else
241 253
         currentDocument.setTitle(new String(cbuf, start, leftover));
242
     } 
243
      
254
     }
244 255
   }
245 256

  
246 257
   /** 

Also available in: Unified diff