[#node-BlockManager-UpdatePruneLock]
= xref:node.adoc[node]::xref:node/BlockManager.adoc[BlockManager]::UpdatePruneLock
:relfileprefix: ../../
:mrdocs:

Create or update a prune lock identified by its name

== Synopsis

Declared in `&lt;node&sol;blockstorage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95130c99d8), requires&lowbar;capability(0x7f950163ccc8), requires&lowbar;capability(0x7f95241d9cb8), requires&lowbar;capability(0x7f951f330fb8), requires&lowbar;capability(0x7f950b9c2f78), requires&lowbar;capability(0x7f95175c56c8)&rsqb;&rsqb;
void
UpdatePruneLock(
    std::string const& name,
    xref:node/PruneLockInfo.adoc[PruneLockInfo] const& lock&lowbar;info);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| The name identifying the prune lock&period;
| *lock&lowbar;info*
| The prune lock information to store&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
