MCPcopy Create free account
hub / github.com/apache/cloudberry / PrepareS3MemContext

Function PrepareS3MemContext

gpcontrib/gpcloud/include/s3params.h:177–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175};
176
177inline void PrepareS3MemContext(const S3Params& params) {
178 S3MemoryContext& memoryContext = const_cast<S3MemoryContext&>(params.getMemoryContext());
179
180 // We need one more chunk of memory for writer to prepare data to upload.
181 memoryContext.prepare(params.getChunkSize(), params.getNumOfChunks() + 1);
182}
183
184#endif

Callers 2

reader_initFunction · 0.85
writer_initFunction · 0.85

Calls 3

getNumOfChunksMethod · 0.80
prepareMethod · 0.45
getChunkSizeMethod · 0.45

Tested by

no test coverage detected