CMAP_DELETE(3)
π CMAP_DELETE(3) π
okay bestie, welcome to the Corosync Cluster Engine Programmer's Manual, section 3, page CMAP_DELETE. yes it's giving very "library function" of her but honestly? she eats. let's get into it β¨
πΈ NAME πΈ
cmap_delete β Delete key/value pair from the CMAP service
like. the name literally tells you everything. she deletes. that's the whole vibe. π
π¦ SYNOPSIS π¦
#include <corosync/cmap.h>
cs_error_t cmap_delete(cmap_handle_t handle, const char *key_name);
two little arguments, one tiny include, zero drama. iconic. π
π DESCRIPTION π
so the cmap_delete function is used to delete a key from cmap. and no, you can't just delete whatever you want out of thin air β the key must have been previously created by the cmap_set(3) function first. you can't delete something that never existed, that's not how any of this works, bestie π
handleβ your connection to the CMAP database, which you got by callingcmap_initialize(3). this is basically your little VIP wristband for the cmap party π«Άkey_nameβ the name of the key you want to delete. bye girl, we won't miss you π
π RETURN VALUE π
this call returns the CS_OK value if it's successful. slay. but like everything in life, it can go wrong, so here's the tea:
- if
key_nameis unspecified, you getCS_ERR_INVALID_PARAMback. you have to actually name the key. you cannot just vibe at the void and expect results π - for nonexisting keys, you get the
CS_ERR_NOT_EXISTerror. so sad, so tragic, that key was never real to begin with π - and listen β some of the keys may be tagged read-only directly in corosync, and deleting such a key will result in a
CS_ERR_ACCESSerror. periodt. you do not have the range, she is protected, leave her alone π₯
and here's the full roster of error codes that can come back at you, because we keep receipts:
CS_ERR_TRY_AGAINResource temporarily unavailableCS_ERR_INVALID_PARAMInvalid argumentCS_ERR_ACCESSPermission deniedCS_ERR_LIBRARYThe connection failedCS_ERR_INTERRUPTSystem call interrupted by a signalCS_ERR_NOT_SUPPORTEDThe requested protocol/functionality not supportedCS_ERR_MESSAGE_ERRORIncorrect auth message receivedCS_ERR_NO_MEMORYNot enough memory to complete the requested task
lowkey if you getCS_ERR_LIBRARYorCS_ERR_MESSAGE_ERRORsomething is deeply not okay in the group chat, just saying π§
β SEE ALSO β
go read her friends too, they're all linked together, iykyk:
and that's the whole page, no cap. mwah π stay hydrated, close your handles, and remember: keys you set, you can delete. keys corosync tagged read-only? absolutely not, she's main character energy and you're not touching her. byeee π¦
this has been the corosync Man Page, dated 03/02/2012, signing off like the little legend she is π
π¦ where this page comes from
- debian bookworm: libcmap-dev 3.1.7-1+deb12u2 Β· BSD-3-Clause
- debian trixie: libcmap-dev 3.1.9-2+deb13u1 Β· BSD-3-Clause
- epel 9: corosynclib-devel 3.1.10-0.2.el9.1 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.10-3.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.10-3.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.9-5.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.9-5.fc43 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-4.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-4.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-6.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-6.fc44 Β· BSD-3-Clause
- nixos 26.05: corosync 3.1.9
- nixpkgs unstable: corosync 3.1.9
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- opensuse-leap 16.0: corosync-devel 3.1.9-160000.4.1 Β· BSD-3-Clause
- ubuntu jammy: libcmap-dev 3.1.6-1ubuntu1 Β· BSD-3-Clause
- ubuntu jammy: libcmap-dev 3.1.6-1ubuntu1.2 Β· BSD-3-Clause
- ubuntu noble: libcmap-dev 3.1.7-1ubuntu3 Β· BSD-3-Clause
- ubuntu noble: libcmap-dev 3.1.7-1ubuntu3.2 Β· BSD-3-Clause
- ubuntu questing: libcmap-dev 3.1.9-2ubuntu1
- ubuntu questing: libcmap-dev 3.1.9-2ubuntu1.1
- ubuntu resolute: libcmap-dev 3.1.9-2ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libcmap-dev 3.1.10-3ubuntu1 Β· BSD-3-Clause
- Copyright (c) 2012 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms