You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cao Manh Dat (JIRA)" <ji...@apache.org> on 2016/12/16 11:08:59 UTC

[jira] [Created] (SOLR-9872) raf.setLength(0) in transactionLog is unreachable

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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org