THRIFT-926. cpp: TFramedTransport: Uphold the strong exception safety guarantee
authorDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:47 +0000 (17:10 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:47 +0000 (17:10 +0000)
commit2991a0f376ab7640b7259ac8db0af820054998cd
tree547bdf08001c92482eb4eb32c54aea7e86119335
parentece1a089eccad21f093de72b5fe6d730d132812c
THRIFT-926. cpp: TFramedTransport: Uphold the strong exception safety guarantee

Previously, if we had a new[] failure when growing a TFramedTransport
write buffer, we would leave the buffer in an invalid state (wBufSize_
would reflect the desired size, rather than the actual size).  Now, we
make no change to any member variables if new[] fails.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005166 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TBufferTransports.cpp