summaryrefslogtreecommitdiffstats
path: root/src/os
diff options
context:
space:
mode:
authorIgor Fedotov <ifedotov@suse.com>2019-01-28 17:11:09 +0100
committerIgor Fedotov <ifedotov@suse.com>2019-01-28 17:11:09 +0100
commite3c42b6334ffc1cfb74a9e06367eb99b3794058d (patch)
treed1a75f728c3e1594eb85e68db04868782e9ab0f2 /src/os
parentMerge pull request #25794 from cbodley/wip-rgw-sync-olh-attrs (diff)
downloadceph-e3c42b6334ffc1cfb74a9e06367eb99b3794058d.tar.xz
ceph-e3c42b6334ffc1cfb74a9e06367eb99b3794058d.zip
os/bluestore: do not check osd_max_object_size in _open_path()
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
Diffstat (limited to 'src/os')
-rw-r--r--src/os/bluestore/BlueStore.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc
index f52b4868979..89cf651a145 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<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) {