]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: add config for osd_max_object_name_len = 2048 (was hard-coded at 4096)
authorSage Weil <sage@redhat.com>
Wed, 16 Jul 2014 21:17:27 +0000 (14:17 -0700)
committerSage Weil <sage@redhat.com>
Fri, 18 Jul 2014 17:44:05 +0000 (10:44 -0700)
commit7e0aca18a04a3848af77f5dd2093dc2e009386ec
treeb23cf2e377ec210a7507065d422cc53cb635f911
parent99dfaf7df45c8833aaf541a8a2ca29da166a9464
osd: add config for osd_max_object_name_len = 2048 (was hard-coded at 4096)

Previously we had a hard coded limit of 4096.  Objects > 3k crash the OSD
when running on ext4, although they probably work on xfs.  But rgw only
generates objects a bit over 1024 bytes (maybe 1200 tops?), so let set a
more reasonable limit here.  2048 is a nice round number and should be
safe.

Add a test.

Fixes: #8174
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config_opts.h
src/include/object.h
src/osd/OSD.cc
src/test/librados/misc.cc