]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/rados: call pool_lookup() after rados is connected 30893/head
authorVikhyat Umrao <vumrao@redhat.com>
Mon, 16 Sep 2019 19:59:56 +0000 (12:59 -0700)
committerNathan Cutler <ncutler@suse.com>
Tue, 15 Oct 2019 08:58:22 +0000 (10:58 +0200)
commitdd78a5a51cbb850af6821f231d7a70aeb5f029bd
treeceffef5dd85cd703a7fbfbd469df65c9abc3c6f0
parent9cb83604879b5c1968d602cae8e43d9c88273f3c
tools/rados: call pool_lookup() after rados is connected
This commit fixes a segmentation fault when using --pgid
option in rados ls command in combination with --pool/-p option.
The reason for the crash was that we can not use the rados object
before connecting it with the cluster using rados.init_with_context().

Fixes: https://tracker.ceph.com/issues/41875
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
(cherry picked from commit 56b6dd9bd7a50371062128122e6a899f2c79c5f5)

Conflicts:
src/tools/rados/rados.cc
src/tools/rados/rados.cc