1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

Merge pull request #841 from pleblanc1976/random-mods

A couple random SM things
This commit is contained in:
Patrick LeBlanc
2019-09-03 11:06:03 -05:00
committed by GitHub
4 changed files with 25 additions and 11 deletions

View File

@@ -65,7 +65,9 @@ bool ReadTask::run()
// read from IOC, write to the socket
vector<uint8_t> outbuf;
outbuf.resize(max(cmd->count, 4) + sizeof(sm_response));
if (cmd->count > (100 << 20))
cmd->count = (100 << 20); // cap a read request at 100MB
outbuf.resize(max(cmd->count, 4) + sizeof(sm_response));
sm_response *resp = (sm_response *) &outbuf[0];
resp->returnCode = 0;