]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc/Journaler: improved error handling
authorJohn Spray <john.spray@redhat.com>
Thu, 19 Mar 2015 20:16:55 +0000 (20:16 +0000)
committerJohn Spray <john.spray@redhat.com>
Mon, 23 Mar 2015 18:20:10 +0000 (18:20 +0000)
commit6bf1ce76eb33d14a9eb2e1f7a288ef47d54e4d01
tree45455f22aa50aa768f7ac861babab6a0267bb39f
parent2b4d96bbbb4f4bb46d6723b3ef4e461cb5eb62d3
osdc/Journaler: improved error handling

Exceptions from ::decode are caught and turned
into return codes that we can handle via
the contexts used for completions.

The assertion that entry_size != 0 is removed in
JournalStream::read so that if it is zero that
just becomes a normal deserialization error
later when someone tries to decode the
zerolength journal event.

Signed-off-by: John Spray <john.spray@redhat.com>
src/osdc/Journaler.cc