]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
journal: return error after first corruption detected 28820/head
authorMykola Golub <mgolub@suse.com>
Mon, 1 Jul 2019 13:15:21 +0000 (14:15 +0100)
committerMykola Golub <mgolub@suse.com>
Mon, 1 Jul 2019 19:09:56 +0000 (20:09 +0100)
commit534a28cdd85ccddd2724e06e12d3391a983ed145
treead3b273450ce4968706242ad5f341889db7b1d69
parentbeb0c343b3f18297b09ddc61b0c2e0156f109455
journal: return error after first corruption detected

No need for the ObjectPlayer to try to decode other entries if
it is going to return -EBADMSG anyway.

This also fixes the ObjectPlayer behaviour when it did not return
error if the corrurption was at the object end.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/journal/ObjectPlayer.cc
src/test/journal/test_ObjectPlayer.cc