提交 a6363b58 编写于 作者: 自凡

stc bug fix

上级 27b5f847
......@@ -42,6 +42,7 @@ LogMsgBuf::LogMsgBuf()
buf = new char[bufSize = DefaultLogMsgBufSize];
defaultBuf = buf;
bufPos = 0;
avg_size = 0;
}
LogMsgBuf::~LogMsgBuf()
......
......@@ -161,7 +161,9 @@ struct LogRecInfo {
m_dbMeta(NULL),
m_expiredMetaDataCollections(NULL),
useLMB(false),
m_reservedMemory(false)
m_reservedMemory(false),
m_lrDataAreaPosInfoPtr(NULL),
m_lrDataAreaEndInfoPtr(NULL)
{
m_posInfo = new PosOfLogMsg_vc;
memset(m_posInfo, -1, sizeof(PosOfLogMsg_vc));
......@@ -196,7 +198,9 @@ struct LogRecInfo {
m_dbMeta(NULL),
m_expiredMetaDataCollections(NULL),
useLMB(false),
m_reservedMemory(false)
m_reservedMemory(false),
m_lrDataAreaPosInfoPtr(NULL),
m_lrDataAreaEndInfoPtr(NULL)
{
m_lrDataArea = new MsgVarArea(false);
parse(ptr, size);
......@@ -218,7 +222,9 @@ struct LogRecInfo {
m_lrDataArea(NULL),
m_tblMeta(NULL),
m_dbMeta(NULL),
m_expiredMetaDataCollections(NULL)
m_expiredMetaDataCollections(NULL),
m_lrDataAreaPosInfoPtr(NULL),
m_lrDataAreaEndInfoPtr(NULL)
{
if (creating) {
m_posInfo = new PosOfLogMsg_vc;
......@@ -2011,6 +2017,9 @@ int LogRecordImpl::getTableMeta(ITableMeta*& tblMeta)
if (pkVal != NULL) {
delete pkVal;
}
if (colOriginTypes != NULL) {
delete colOriginTypes;
}
/*
if (colDefault != NULL) {
delete colDefault;
......
......@@ -1231,6 +1231,9 @@ void ITableMeta::trySerializeMetaDataAsMsgArea(std::vector<const char*>& extra_i
delete[] col_not_null;
delete[] col_signed;
delete[] col_decimals;
delete[] col_scale;
delete[] col_length;
delete[] col_precision;
m_DataOk = true;
pthread_mutex_unlock(&m_mdMutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册