From f5ece1d5f3955833a5b0fc67776023a29c9d9d09 Mon Sep 17 00:00:00 2001 From: prashanthduvvada Date: Wed, 21 Aug 2024 13:45:14 -0400 Subject: [PATCH] Small Fix --- src/storage/disk/disk_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/disk/disk_manager.cpp b/src/storage/disk/disk_manager.cpp index 34fe1e18c..712a2aa82 100644 --- a/src/storage/disk/disk_manager.cpp +++ b/src/storage/disk/disk_manager.cpp @@ -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