Exemplo n.º 1
0
 public override void Dispose()
 {
     try
     {
         // turn on the following to look for leaks closing inputs,
         // after fixing TestTransactions
         Dir.MaybeThrowDeterministicException();
     }
     finally
     {
         Closed = true;
         @delegate.Dispose();
         // Pending resolution on LUCENE-686 we may want to
         // remove the conditional check so we also track that
         // all clones get closed:
         if (!IsClone)
         {
             Dir.RemoveIndexInput(this, Name);
         }
         else
         {
             //Could this be where things aren't being deleted?
         }
     }
 }
Exemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         try
         {
             // turn on the following to look for leaks closing inputs,
             // after fixing TestTransactions
             // Dir.MaybeThrowDeterministicException();
         }
         finally
         {
             Closed = true;
             @delegate.Dispose();
             // Pending resolution on LUCENE-686 we may want to
             // remove the conditional check so we also track that
             // all clones get closed:
             if (!IsClone)
             {
                 Dir.RemoveIndexInput(this, Name);
             }
         }
     }
 }