mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-05 12:03:26 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user