Skip to content

Commit

Permalink
Small Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prashanthduvvada committed Aug 21, 2024
1 parent 69d702a commit f5ece1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/disk/disk_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static char *buffer_used;
* @input db_file: database file name
*/
DiskManager::DiskManager(const std::filesystem::path &db_file) : file_name_(db_file) {
log_name_ = file_name_.filename().stem() / ".log";
log_name_ = file_name_.filename().stem().string() + ".log";

log_io_.open(log_name_, std::ios::binary | std::ios::in | std::ios::app | std::ios::out);
// directory or file does not exist
Expand Down

0 comments on commit f5ece1d

Please sign in to comment.