MCPcopy Create free account
hub / github.com/MariaDB/server / JsonSubSet

Function JsonSubSet

storage/connect/jsonudf.cpp:1268–1279  ·  view source on GitHub ↗

/ Program for SubSet re-initialization of the memory pool. */ /

Source from the content-addressed store, hash-verified

1266/* Program for SubSet re-initialization of the memory pool. */
1267/*********************************************************************************/
1268my_bool JsonSubSet(PGLOBAL g, my_bool b)
1269{
1270 PPOOLHEADER pph = (PPOOLHEADER)g->Sarea;
1271
1272 pph->To_Free = (g->Saved_Size) ? g->Saved_Size : sizeof(POOLHEADER);
1273 pph->FreeBlk = g->Sarea_Size - pph->To_Free;
1274
1275 if (b)
1276 g->Saved_Size = 0;
1277
1278 return FALSE;
1279} /* end of JsonSubSet */
1280
1281/*********************************************************************************/
1282/* Program for saving the status of the memory pools. */

Callers 6

MakeValueMethod · 0.85
bson_array_grp_clearFunction · 0.85
bson_object_grp_clearFunction · 0.85
CheckMemoryFunction · 0.85
json_serializeFunction · 0.85
jfile_bjsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected