]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librbd/test_librbd.cc: set *features even if RBD_FEATURES is unset 14965/head
authorDan Mick <dan.mick@redhat.com>
Fri, 5 May 2017 03:15:58 +0000 (20:15 -0700)
committerDan Mick <dan.mick@redhat.com>
Fri, 5 May 2017 03:15:58 +0000 (20:15 -0700)
commit73bcaef3490ce5421afd93a24ffb70a5a5c6fc22
tree7a71d7b6e83cc50315c05a1ed538137924eee6f3
parent77a43573ab89ae3e50cfd1acf548c266d12e90f4
test/librbd/test_librbd.cc: set *features even if RBD_FEATURES is unset

If RBD_FEATURES is not in the environment, set *features to 0 in
get_features(); callers rely on a valid return value.  (This was
breaking on arm64.)

Fixes: http://tracker.ceph.com/issues/19865
Signed-off-by: Dan Mick <dan.mick@redhat.com>
src/test/librbd/test_librbd.cc