summaryrefslogtreecommitdiff
path: root/innobase/buf
diff options
context:
space:
mode:
authorheikki@donna.mysql.fi <>2001-12-14 18:50:43 +0200
committerheikki@donna.mysql.fi <>2001-12-14 18:50:43 +0200
commit3c3d967bd2557ca81d1944728a5eb3bc4412eb0a (patch)
tree029b78753338fbfb933dca1c4cab10d1d2fa4941 /innobase/buf
parent0d67738e20fbe3634b166f2333df7555e5de7d1d (diff)
downloadmariadb-git-3c3d967bd2557ca81d1944728a5eb3bc4412eb0a.tar.gz
buf0buf.c:
Eliminate a Purify warning in a multithreaded test: the fields are not protected by a mutex, therefore they can be read uninitialized
Diffstat (limited to 'innobase/buf')
-rw-r--r--innobase/buf/buf0buf.c3
1 files changed, 3 insertions, 0 deletions
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;
}