]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: shctx: Shared objects block by block allocation.
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 22 Oct 2018 15:55:57 +0000 (17:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Oct 2018 02:35:53 +0000 (04:35 +0200)
commit0bec807e087cb65b77865607e0c64cd0d44556bc
tree9dace099cd6c89b069396a73d5b54eb4752d9834
parent30f931ead209aa4966ff5af3cbd01517096c9163
MINOR: shctx: Shared objects block by block allocation.

This patch makes shctx capable of storing objects in several parts,
each parts being made of several blocks. There is no more need to
walk through until reaching the end of a row to append new blocks.

A new pointer to a struct shared_block member, named last_reserved,
has been added to struct shared_block so that to memorize the last block which was
reserved by shctx_row_reserve_hot(). Same thing about "last_append" pointer which
is used to memorize the last block used by shctx_row_data_append() to store the data.
include/proto/shctx.h
include/types/shctx.h
src/cache.c
src/shctx.c
src/ssl_sock.c