New upstream version 8.1.0

This commit is contained in:
geos_one
2025-08-10 01:34:16 +02:00
commit c891bb7105
4398 changed files with 838833 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
#pragma once
#include <common/benchmark/StorageBench.h>
#include <common/components/worker/Work.h>
#include <common/toolkit/Pipe.h>
#include <common/Common.h>
class StorageBenchWork: public Work
{
public:
StorageBenchWork(uint16_t targetID, int threadID, int fileDescriptor,
StorageBenchType type, int64_t bufLen, Pipe* operatorCommunication, char* buf)
{
this->targetID = targetID;
this->threadID = threadID;
this->fileDescriptor = fileDescriptor;
this->type = type;
this->bufLen = bufLen;
this->operatorCommunication = operatorCommunication;
this->buf = buf;
}
virtual ~StorageBenchWork()
{
}
void process(char* bufIn, unsigned bufInLen, char* bufOut, unsigned bufOutLen);
protected:
private:
uint16_t targetID;
int threadID; // virtual threadID
int fileDescriptor;
StorageBenchType type;
int64_t bufLen;
char* buf;
Pipe* operatorCommunication;
};