Cao Manh Dat created SOLR-9872:
----------------------------------

             Summary: raf.setLength(0) in transactionLog is unreachable
                 Key: SOLR-9872
                 URL: https://issues.apache.org/jira/browse/SOLR-9872
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Cao Manh Dat


When I look at {{TransactionLog.java}} I found these lines of code in 
constructor

{code}
        if (start > 0) {
          log.warn("New transaction log already exists:" + tlogFile + " size=" 
+ raf.length());
          return;
        }
       
        if (start > 0) {
          raf.setLength(0);
        }
        addGlobalStrings(globalStrings);
{code}

It seems, we will never reach {{raf.setLength(0)}}?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to