]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon_store_converter.cc: move convert() call out of assert()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 23 Oct 2014 17:56:47 +0000 (19:56 +0200)
committerSage Weil <sage@redhat.com>
Mon, 27 Oct 2014 19:44:25 +0000 (12:44 -0700)
commit0214653baa7d9417ae878e0796db4fcc395399a4
treec25db94988f6e0b7b3d3ed9757de44b6dc3f0375
parent2ecd43ba6c58aae6bbe7e27ec00cdea7f206245c
mon_store_converter.cc: move convert() call out of assert()

The convert() call is changing data. To prevent Heisenbugs
depending in NDEBUG definition (e.g. if debug is off).

Move convert() call out of the assert call and use assert
only on the result value of the call.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/tools/mon_store_converter.cc