]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: do not check osd_max_object_size in _open_path() 26176/head
authorIgor Fedotov <ifedotov@suse.com>
Mon, 28 Jan 2019 16:11:09 +0000 (19:11 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Mon, 28 Jan 2019 16:11:09 +0000 (19:11 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/os/bluestore/BlueStore.cc

index f52b4868979bcc3840e8290295d2a74b0b2f40c5..89cf651a14522b4d68baacbd265e6a144e921178 100644 (file)
@@ -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<Option::size_t>("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) {