]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
libcephsqlite: fix unconditional success bug in CheckReservedLock 50036/head
authormark15213 <shuaiw2@andrew.cmu.edu>
Wed, 4 Aug 2021 13:02:32 +0000 (21:02 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 8 Feb 2023 15:09:36 +0000 (10:09 -0500)
commit5c423e5533be0ba6c775261c9cd34154b082c90f
tree5a045bcd02888c0f992b1d99fb7ccaab11e79a1e
parent3322c4f8af47a3bb47783fc35607709a3dae3850
libcephsqlite: fix unconditional success bug in CheckReservedLock
we don't want to set result to zero at the end.
Otherwise, the if above would be useless and the function cannot be used to check the reserved lock.

Fixes: https://tracker.ceph.com/issues/52001
Signed-off-by: Shuai Wang <shuaiw2@andrew.cmu.edu>
(cherry picked from commit e8162b1e2a048b5007db3653ff1299ea49e458f2)
src/libcephsqlite.cc