Skip to content

Commit

Permalink
os/bluestore: using macro OBJECT_MAX_SIZE to check object max size.
Browse files Browse the repository at this point in the history
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
  • Loading branch information
majianpeng committed Jan 3, 2018
1 parent 5d7813f commit db85d62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4014,8 +4014,9 @@ int BlueStore::_open_path()
{
// sanity check(s)
if (cct->_conf->get_val<uint64_t>("osd_max_object_size") >=
4*1024*1024*1024ull) {
derr << __func__ << " osd_max_object_size >= 4GB; BlueStore has hard limit of 4GB." << dendl;
(uint64_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;
}
assert(path_fd < 0);
Expand Down

0 comments on commit db85d62

Please sign in to comment.