commit | ece1a089eccad21f093de72b5fe6d730d132812c | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Wed Oct 06 17:10:46 2010 +0000 |
committer | David Reiss <dreiss@apache.org> | Wed Oct 06 17:10:46 2010 +0000 |
tree | 6d6d894d220f8e400dbb21ad2e35e72c664b7619 | |
parent | 54bec5dbd8f91305d2cd1d1f1125cf8b54fdd6bc [diff] |
THRIFT-926. cpp: TMemoryBuffer: Uphold the strong exception safety guarantee Previously, if we had a realloc failure when growing a TMemoryBuffer, we would leave the buffer in an invalid state (bufferSize_ would reflect the desired size, rather than the actual size). Now, we make no change to any member variables if realloc fails. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005165 13f79535-47bb-0310-9956-ffa450edef68