bustub icon indicating copy to clipboard operation
bustub copied to clipboard

fix(disk_manager): remove redundant open file

Open skyzh opened this issue 1 year ago • 0 comments

Signed-off-by: Alex Chi [email protected]

close https://github.com/cmu-db/bustub/issues/150

log_io_.open(log_name_, std::ios::binary | std::ios::trunc | std::ios::app | std::ios::out);

This line will always fail and doesn't take effect at all. We can directly create (or truncate) a file if we can't open it.

skyzh avatar Jul 27 '22 19:07 skyzh