Skip to content
Commit 0a990e70 authored by Sage Weil's avatar Sage Weil
Browse files

ceph: clean up service ticket decoding



Previously we would decode state directly into our current ticket_handler.
This is problematic if for some reason we fail to decode, because we end
up with half new state and half old state.

We are probably already in bad shape if we get an update we can't decode,
but we may as well be tidy anyway.  Decode into new_* temporaries and
update the ticket_handler only on success.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 5b3dbb44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment