MINOR: hlua_fcn: add Patref:purge() method

It is a special Lua Patref method: it bypasses the commit/prepare logic
and purges the whole pattern reference items pointed to by Patref Lua
object (all versions, not just the current one). It doesn't have a cli
equivalent: it leverages pat_ref_purge_range().
This commit is contained in:
Aurelien DARRAGON
2024-11-21 16:46:26 +01:00
parent fe394598c5
commit fda5ca3472
2 changed files with 18 additions and 0 deletions

View File

@@ -3456,6 +3456,11 @@ Patref class
:returns: true if the pattern reference is used to handle maps instead
of acl, false otherwise.
.. js:function:: Patref.purge(ref)
Completely prune all pattern reference entries pointed to by Patref object.
This special operation doesn't require committing.
.. js:function:: Patref.prepare(ref)
Create a new empty version for Patref Object. It can be used to manipulate