Skip to content

Commit 7fea51f

Browse files
committed
fixed filename extension
1 parent a1508a3 commit 7fea51f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/logging.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,10 +997,11 @@ void LogFileObject::FlushUnlocked(){
997997
}
998998

999999
bool LogFileObject::CreateLogfile(const string& time_pid_string) {
1000-
string string_filename = base_filename_+filename_extension_;
1000+
string string_filename = base_filename_;
10011001
if (FLAGS_timestamp_in_logfile_name) {
10021002
string_filename += time_pid_string;
10031003
}
1004+
string_filename += filename_extension_;
10041005
const char* filename = string_filename.c_str();
10051006
//only write to files, create if non-existant.
10061007
int flags = O_WRONLY | O_CREAT;

0 commit comments

Comments
 (0)