]> git.proxmox.com Git - pve-cluster.git/commit
pmxcfs: db: use SQLITE_STATIC to avoid memory copies
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Apr 2021 08:18:58 +0000 (10:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Apr 2021 19:37:55 +0000 (21:37 +0200)
commitc44bb3d626c89d407212494695d2ff36029ba6b3
tree67740a7551429d1f3d377ccb74fa7e53099e2e18
parent42f0a0a528b05b55535eed42c472c301385e3acf
pmxcfs: db: use SQLITE_STATIC to avoid memory copies

we can trust that we own *value and *name until the sqlite statement
was executed, so use the STATIC bind flag to tell sqlite that it does
not need to make it's own copy in the bind statement.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/src/database.c