]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
buffer: throw exceptions instead of always asserting.
authorSage Weil <sage@newdream.net>
Fri, 26 Jun 2009 17:13:07 +0000 (10:13 -0700)
committerSage Weil <sage@newdream.net>
Fri, 26 Jun 2009 18:43:21 +0000 (11:43 -0700)
commit116140b830a70f44ddeefd02b92851c49df1239f
tree5c530d92783469bf7fe6e9ba41c752df2a5747f0
parentc5faf4097a8ac76baa127155e36897180182b1ca
buffer: throw exceptions instead of always asserting.

We still assert when the user is doing something wrong.  We throw
asserts for failed memory allocs, and for buffer overruns.  I
think that'll align with usage... esp the encoding/decoding.
src/include/buffer.h
src/msg/Message.cc