// nor attempt to open any cachefile with the same fname (dname)
// nor attempt to open any cachefile with the same fname (dname)
// until this cachefile has been fully closed and unlinked.
// until this cachefile has been fully closed and unlinked.
boolunlink_on_close;
boolunlink_on_close;
// If set then fclose will not be logged in recovery log.
boolskip_log_recover_on_close;
intfd;/* Bug: If a file is opened read-only, then it is stuck in read-only. If it is opened read-write, then subsequent writers can write to it too. */
intfd;/* Bug: If a file is opened read-only, then it is stuck in read-only. If it is opened read-write, then subsequent writers can write to it too. */
toku_log_fclose(logger,&lsn,ft->h->dirty,bs,toku_cachefile_filenum(cachefile));// flush the log on close (if new header is being written), otherwise it might not make it out.