From e3c42b6334ffc1cfb74a9e06367eb99b3794058d Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Mon, 28 Jan 2019 19:11:09 +0300 Subject: [PATCH] os/bluestore: do not check osd_max_object_size in _open_path() Signed-off-by: Igor Fedotov --- src/os/bluestore/BlueStore.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index f52b4868979b..89cf651a1452 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -4393,13 +4393,6 @@ int BlueStore::get_block_device_fsid(CephContext* cct, const string& path, int BlueStore::_open_path() { // sanity check(s) - auto osd_max_object_size = - cct->_conf.get_val("osd_max_object_size"); - if (osd_max_object_size >= (size_t)OBJECT_MAX_SIZE) { - derr << __func__ << " osd_max_object_size >= 0x" << std::hex << OBJECT_MAX_SIZE - << "; BlueStore has hard limit of 0x" << OBJECT_MAX_SIZE << "." << std::dec << dendl; - return -EINVAL; - } ceph_assert(path_fd < 0); path_fd = TEMP_FAILURE_RETRY(::open(path.c_str(), O_DIRECTORY|O_CLOEXEC)); if (path_fd < 0) { -- 2.47.3