sebb        2004/01/19 17:30:06

  Modified:    src/functions/org/apache/jmeter/functions CSVRead.java
  Log:
  Fix threading bug (I hope) - don't increment row until line has been read (i.e. used)
  
  Revision  Changes    Path
  1.9       +2 -2      
jakarta-jmeter/src/functions/org/apache/jmeter/functions/CSVRead.java
  
  Index: CSVRead.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/functions/org/apache/jmeter/functions/CSVRead.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- CSVRead.java      26 Oct 2003 19:18:16 -0000      1.8
  +++ CSVRead.java      20 Jan 2004 01:30:06 -0000      1.9
  @@ -155,7 +155,6 @@
               // if argument is 'next' - go to the next line
               if (columnOrNext.equals("next()") || columnOrNext.equals("next"))
               {
  -                myfileData.incrementRowPosition();
                   storeCurrentLine(null);
                   /*
                    * All done now ,so return the empty string - this allows the 
caller to
  @@ -175,6 +174,7 @@
               if (myfileData != null && processedLines == null)
               {
                   processedLines = (ArrayList) myfileData.getNextLine();
  +                             myfileData.incrementRowPosition();
                   this.storeCurrentLine(processedLines);
               }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to