Hi,
On 9/29/21 12:59 PM, Ranier Vilela wrote:
I have a stupid question, why duplicate PushActiveSnapshot?
Wouldn't one function be better?
PushActiveSnapshot(Snapshot snap, int as_level);
Sample calls:
PushActiveSnapshot(GetTransactionSnapshot(), GetCurrentTransactionNestLevel());
PushActiveSnapshot(queryDesc->snapshot, GetCurrentTransactionNestLevel());
PushActiveSnapshot(GetTransactionSnapshot(), portal->createSubid);
I would say because that could "break" existing extensions for example.
Adding a new function prevents "updating" existing extensions making use of PushActiveSnapshot().
Thanks
Bertrand