From: Remi Tricot-Le Breton Date: Thu, 16 Nov 2023 16:38:11 +0000 (+0100) Subject: MINOR: shctx: Set last_append to NULL when reserving block in hot list X-Git-Tag: v2.9-dev10~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55fbf820808166d49fa51ca6de9a3ddeaaeeec88;p=thirdparty%2Fhaproxy.git MINOR: shctx: Set last_append to NULL when reserving block in hot list Ensure that the last_append pointer is always set to NULL on first block of rows reserved by the subsystems using the shctx (cache for instance). This pointer will be used directly in shctx_row_data_append instead of the 'from' param which will simplify its uses. --- diff --git a/src/shctx.c b/src/shctx.c index d114d469fd..862adb68ba 100644 --- a/src/shctx.c +++ b/src/shctx.c @@ -114,6 +114,7 @@ struct shared_block *shctx_row_reserve_hot(struct shared_context *shctx, ret->block_count = freed; ret->refcount = 1; ret->last_reserved = block; + ret->last_append = NULL; enough = 1; break; }