]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/rados: call pool_lookup() after rados is connected 30413/head
authorVikhyat Umrao <vumrao@redhat.com>
Mon, 16 Sep 2019 19:59:56 +0000 (12:59 -0700)
committerVikhyat Umrao <vumrao@redhat.com>
Tue, 17 Sep 2019 16:37:35 +0000 (09:37 -0700)
commit56b6dd9bd7a50371062128122e6a899f2c79c5f5
tree25b60eb7e15ee8dab98d691e9f7bd6877c45e1a9
parent4bee76ba9cba38dbce76edcdac537c895662a3d8
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>
src/tools/rados/rados.cc