public final synchronized boolean closeWhenPossible() throws IOException {
  doClose.set(true);
  if (readingCount.get() == 0) {
    close();
  }
  return closed.get();
}

public final synchronized boolean closeWhenPossible ( ) throws IOException { doClose . set ( true ) ; if ( readingCount . get ( ) == 0 ) { close ( ) ; } return closed . get ( ) ; }
this method is called in lecenindex invalidatereaders or on commit
