26 Jan
2018
26 Jan
'18
9:14 a.m.
On 25/01/18 22:08, Roberto Cornacchia wrote:
I'm always confused with BBPrelclaim, BBPrelease, BBPunfix.
BBPreclaim is essentially the same as BBPunfix, except for two things: the argument is different (BAT * vs. bat, i.e. b vs. b->batCacheid), and BBPrelease can only be called if you *know* that there is only exactly one reference to the BAT (yours), i.e. basically for BATs that you just created and need to clean up. Internally, BBPreclaim just calls BBPunfix. BBPrelease is completely different. It is used to release a *logical* reference, whereas the other two release a *physical* reference. -- Sjoerd Mullender