Lines Matching refs:log_file_
123 : log_file_(NULL), needs_recompaction_(false) {} in BuildLog()
136 assert(!log_file_); in OpenForWrite()
165 if (log_file_) { in RecordCommand()
166 if (!WriteEntry(log_file_, *log_entry)) in RecordCommand()
168 if (fflush(log_file_) != 0) { in RecordCommand()
178 if (log_file_) in Close()
179 fclose(log_file_); in Close()
180 log_file_ = NULL; in Close()
187 log_file_ = fopen(log_file_path_.c_str(), "ab"); in OpenForWriteIfNeeded()
188 if (!log_file_) { in OpenForWriteIfNeeded()
191 setvbuf(log_file_, NULL, _IOLBF, BUFSIZ); in OpenForWriteIfNeeded()
192 SetCloseOnExec(fileno(log_file_)); in OpenForWriteIfNeeded()
196 fseek(log_file_, 0, SEEK_END); in OpenForWriteIfNeeded()
198 if (ftell(log_file_) == 0) { in OpenForWriteIfNeeded()
199 if (fprintf(log_file_, kFileSignature, kCurrentVersion) < 0) { in OpenForWriteIfNeeded()