From 0de5d9930f90fc5a1239a141229a540b408d6b9d Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 14 Dec 2001 18:50:43 +0200 Subject: [PATCH] buf0buf.c: Eliminate a Purify warning in a multithreaded test: the fields are not protected by a mutex, therefore they can be read uninitialized innobase/buf/buf0buf.c: Eliminate a Purify warning in a multithreaded test: the fields are not protected by a mutex, therefore they can be read uninitialized --- innobase/buf/buf0buf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/innobase/buf/buf0buf.c b/innobase/buf/buf0buf.c index 7d9cbf24948..055d76e6d81 100644 --- a/innobase/buf/buf0buf.c +++ b/innobase/buf/buf0buf.c @@ -1158,6 +1158,9 @@ buf_page_init( block->n_hash_helps = 0; block->is_hashed = FALSE; + block->n_fields = 1; + block->n_bytes = 0; + block->side = BTR_SEARCH_LEFT_SIDE; block->file_page_was_freed = FALSE; }