]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/KeyValueStore: make get_max_object_name_length() sane
authorSage Weil <sage@redhat.com>
Tue, 22 Jul 2014 20:37:20 +0000 (13:37 -0700)
committerSage Weil <sage@redhat.com>
Tue, 22 Jul 2014 20:37:20 +0000 (13:37 -0700)
commitdaac7508d2aeb8470442ea0dc047c023db021237
treee532b9b650f39f7c7d60f048d7e572134cd65fa7
parent74b386f03e4ca9970256db72c575589aea077534
os/KeyValueStore: make get_max_object_name_length() sane

This is getting the NAME_MAX from the OS, but in reality the backend
KV store is the limiter.  And for leveldb, there is no real limit.
Return 4096 for now.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/KeyValueStore.cc
src/os/KeyValueStore.h