Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another place where refcnt in the COL_INFO object is unfortunately erased. #55

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ void TI_ClearObject(TABLE_INFO *ti)
MYLOG(0, "!!!refcnt %p:%d -> %d\n", coli, coli->refcnt, coli->refcnt - 1);
coli->refcnt--;
if (coli->refcnt <= 1 && 0 == coli->acc_time) /* acc_time == 0 means the table is dropped */
{
Int2 tmp_refcnt = coli->refcnt; /* If refcnt is still above 0, we must save it. */
free_col_info_contents(coli); /* Now coli object is unused, and may be reused later. */
coli->refcnt = tmp_refcnt;
}
if (coli->refcnt <= 0)
{
/* Last reference to coli object disappeared. Now destroying it. */
Expand Down