You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
feat(bytestream,serdes): Distribute BS buf size data type change to avoid implicit data type narrowing
This commit is contained in:
@ -400,8 +400,7 @@ void SlaveComm::do_createStripeColumnExtents(ByteStream& msg)
|
||||
|
||||
if (printOnly)
|
||||
{
|
||||
cout << "createStripeColumnExtents(). "
|
||||
<< "DBRoot=" << dbRoot << "; Part#=" << partitionNum << endl;
|
||||
cout << "createStripeColumnExtents(). " << "DBRoot=" << dbRoot << "; Part#=" << partitionNum << endl;
|
||||
|
||||
for (uint32_t i = 0; i < cols.size(); i++)
|
||||
cout << "StripeColExt arg " << i + 1 << ": oid=" << cols[i].oid << " width=" << cols[i].width << endl;
|
||||
@ -2183,6 +2182,9 @@ void SlaveComm::saveDelta()
|
||||
{
|
||||
try
|
||||
{
|
||||
// !!!
|
||||
// !!! Reducing BS size type from 64bit down to 32 and potentially loosing data.
|
||||
// !!!
|
||||
const uint32_t deltaLen = delta.length();
|
||||
const uint32_t bufferSize = sizeof(deltaLen) + deltaLen;
|
||||
std::unique_ptr<char[]> buffer(new char[bufferSize]);
|
||||
|
Reference in New Issue
Block a user