]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/FileJournal: Tune the judge logic for read_header.
authorMa Jianpeng <jianpeng.ma@intel.com>
Thu, 21 Aug 2014 07:49:44 +0000 (15:49 +0800)
committerSage Weil <sage@redhat.com>
Tue, 21 Oct 2014 13:55:12 +0000 (06:55 -0700)
commit3312c6eeca21dcd566df9bdd8de7b3fe33356b57
tree23ed97f32ce5a4e58ee004c5f3ba4b3316ec1be4
parentb42107584449e1f85cbee97bfa486ebeb310e6a1
os/FileJournal: Tune the judge logic for read_header.

When reading journal-header, it should firstly check the result of
pread and then do decoce operation.

Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
(cherry picked from commit c8e2b89cf6bc36a0ff29887b9e76cbbeceef9f8f)
src/os/FileJournal.cc