]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/rados: call pool_lookup() after rados is connected 30605/head
authorVikhyat Umrao <vumrao@redhat.com>
Mon, 16 Sep 2019 19:59:56 +0000 (12:59 -0700)
committerVikhyat Umrao <vumrao@redhat.com>
Thu, 26 Sep 2019 22:50:24 +0000 (15:50 -0700)
commit9997eabe6d3a06fa1fc054f2dbf6e8fe6fb3d22c
treef5d86fd1db719542e4d0f0eea0e95d3d0bf5c1f3
parent534c2f14693439413791049826ca23d1706c7a8d
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)
src/tools/rados/rados.cc