Fallback to normal case when dsm segment is full. Add on_dsm_detach.

This commit is contained in:
TotaJ
2020-10-12 14:59:09 +08:00
parent 13b34b53cd
commit b84b4cc418
9 changed files with 325 additions and 201 deletions

View File

@ -452,12 +452,9 @@ TupleQueueReader *CreateTupleQueueReader(shm_mq_handle *handle, TupleDesc tupled
*/
void DestroyTupleQueueReader(TupleQueueReader *reader)
{
if (reader->queue != NULL) {
shm_mq_detach(reader->queue);
reader->queue = NULL;
}
if (reader->remapinfo != NULL)
if (reader->remapinfo != NULL) {
pfree(reader->remapinfo);
}
pfree(reader);
}