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

Function EstimateLibraryStateSpace

src/backend/utils/fmgr/dfmgr.c:756–768  ·  view source on GitHub ↗

* Estimate the amount of space needed to serialize the list of libraries * we have loaded. */

Source from the content-addressed store, hash-verified

754 * we have loaded.
755 */
756Size
757EstimateLibraryStateSpace(void)
758{
759 DynamicFileList *file_scanner;
760 Size size = 1;
761
762 for (file_scanner = file_list;
763 file_scanner != NULL;
764 file_scanner = file_scanner->next)
765 size = add_size(size, strlen(file_scanner->filename) + 1);
766
767 return size;
768}
769
770/*
771 * Serialize the list of libraries we have loaded to a chunk of memory.

Callers 1

InitializeParallelDSMFunction · 0.85

Calls 1

add_sizeFunction · 0.85

Tested by

no test coverage detected