futurewei-cloud / chogori-opengauss

Other
2 stars 7 forks source link

copy skeys in camBeginScan to avoid the original object goes out of scope #127

Closed johnfangAFW closed 1 year ago

johnfangAFW commented 1 year ago

Fix the issue that the sk_flag became garbage during scan process since the skey object was out of scope. Use palloc0 to allocate memory from the current memory context so that it would be clean up automatically when query finishes.