From: Igor Fedotov Date: Mon, 28 Jan 2019 16:11:09 +0000 (+0300) Subject: os/bluestore: do not check osd_max_object_size in _open_path() X-Git-Tag: v15.1.0~2819^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e3c42b6334ffc1cfb74a9e06367eb99b3794058d;p=ceph.git os/bluestore: do not check osd_max_object_size in _open_path() Signed-off-by: Igor Fedotov --- 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) {