From 2cfbee903a0a16d1fdeca52dbf6e775cdcddcc74 Mon Sep 17 00:00:00 2001 From: David Steele Date: Thu, 30 Mar 2023 15:43:37 +0500 Subject: [PATCH] Use Buffer object for page buffer in PageChecksum filter. This avoids the object needing to support allocations. --- src/command/backup/pageChecksum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command/backup/pageChecksum.c b/src/command/backup/pageChecksum.c index d2435e26f..7bee159b5 100644 --- a/src/command/backup/pageChecksum.c +++ b/src/command/backup/pageChecksum.c @@ -231,14 +231,14 @@ pageChecksumNew(const unsigned int segmentNo, const unsigned int segmentPageTota FUNCTION_LOG_PARAM(STRING, fileName); FUNCTION_LOG_END(); - OBJ_NEW_BEGIN(PageChecksum, .childQty = MEM_CONTEXT_QTY_MAX, .allocQty = MEM_CONTEXT_QTY_MAX) + OBJ_NEW_BEGIN(PageChecksum, .childQty = MEM_CONTEXT_QTY_MAX) { *this = (PageChecksum) { .segmentPageTotal = segmentPageTotal, .pageNoOffset = segmentNo * segmentPageTotal, .fileName = strDup(fileName), - .pageBuffer = memNew(PG_PAGE_SIZE_DEFAULT), + .pageBuffer = bufPtr(bufNew(PG_PAGE_SIZE_DEFAULT)), .valid = true, .align = true, };