]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: replace assert with error check in clone()
authorIlya Dryomov <idryomov@gmail.com>
Thu, 11 Apr 2024 16:56:15 +0000 (18:56 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 13 Jun 2024 12:08:46 +0000 (14:08 +0200)
commitd6eafafac1fe782f6fa36488a4716e5b0bab9937
treed679e2ca52c56b33878fc3b73dad261826db4f0e
parent53799d0dad94e020c2204ace1c5e8b5c8b843b64
librbd: replace assert with error check in clone()

With an error check for p_snap_name, it doesn't make much sense to
crash if "either p_id or p_name" contract is violated.  Replace the
assert with a similar error check.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/internal.cc