]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
libcephfs: fix ceph_get_osd_crush_location 132/head
authorNoah Watkins <noahwatkins@gmail.com>
Thu, 21 Mar 2013 22:30:41 +0000 (15:30 -0700)
committerNoah Watkins <noahwatkins@gmail.com>
Thu, 21 Mar 2013 22:32:39 +0000 (15:32 -0700)
commit76985007fd9d524bd7800a21bc4ab4fe63cb208c
treeb9932924f34ba4841e62114a992bbcab5755fe5d
parent4939301706d73c84c96b01dc51898babfe682cf7
libcephfs: fix ceph_get_osd_crush_location

(a) Allow NULL buffer when length is zero to get the target buffer
length. (b) fix edge case where buffer length is the exact size
required.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
src/libcephfs.cc
src/test/libcephfs/test.cc