Skip to content

Commit

Permalink
Disable buffered i/o; can lead to data loss.
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd committed Sep 26, 2024
1 parent ab9dd4e commit d769722
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class HomestoreConan(ConanFile):
name = "homestore"
version = "3.7.2"
version = "3.7.3"

homepage = "https://github.corp.ebay.com/SDS/homestore"
description = "HomeStore"
Expand Down
3 changes: 1 addition & 2 deletions src/engine/device/physical_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,7 @@ PhysicalDev::PhysicalDev(DeviceManager* const mgr, const std::string& devname, c
m_info_blk.first_chunk_id = INVALID_CHUNK_ID;

int oflags_used{oflags};
if (devname.find("/tmp") == 0 ||
(m_drive_iface->interface_type() == drive_interface_type::uring && m_mgr->is_hdd_direct_io_mode() == false)) {
if (devname.find("/tmp") == 0 || (m_mgr->is_hdd(devname) && m_mgr->is_hdd_direct_io_mode() == false)) {
// tmp directory in general does not allow Direct I/O
LOGINFO("Trying to remove O_DIRECT bit from open flags: before: {}, after: {}", oflags_used,
oflags & (~O_DIRECT));
Expand Down

0 comments on commit d769722

Please sign in to comment.