]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msgr: ref count message while they are owned by the messenger
authorSage Weil <sage@newdream.net>
Thu, 20 Nov 2008 19:31:12 +0000 (11:31 -0800)
committerSage Weil <sage@newdream.net>
Thu, 20 Nov 2008 19:43:54 +0000 (11:43 -0800)
commit802d0e269123b0cc54004bb9a96895a33827d7ab
treef6e3d870479573c07a9a9cd83e19bcac4648add7
parente85c9f89df8a60c9a7fdc2cbc3403159b61ffc9c
msgr: ref count message while they are owned by the messenger

Users still assume they hold the only reference, at least until
they call send_message.

One caveat is that ms_handle_failure is passed a message with an
unknown number of refs.  The method should not try to free or
re-use the message.
src/include/atomic.h
src/msg/Dispatcher.h
src/msg/Message.h
src/msg/SimpleMessenger.cc
src/msg/SimpleMessenger.h
src/osd/OSD.cc
src/testmsgr.cc
src/vstart.sh