summaryrefslogtreecommitdiff
path: root/innobase/buf
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2005-06-22 12:36:24 +0300
committerunknown <marko@hundin.mysql.fi>2005-06-22 12:36:24 +0300
commit369da8f53903634549b818a706f61e40dd31b7d4 (patch)
tree905c3919d739c5a93185d374ae6d7f2fca3052d9 /innobase/buf
parent283d42e52a4e06c7487b44247b592d6ffa537cd7 (diff)
downloadmariadb-git-369da8f53903634549b818a706f61e40dd31b7d4.tar.gz
InnoDB: Replace for loops with memset() where possible.
innobase/btr/btr0cur.c: Replace for loop with memset() innobase/buf/buf0buf.c: buf_print(): Remove for loop for initializing counts[]. Similar to index_ids[], the elements of this array will be initialized when they are allocated, i.e., counts[n_found++] = 1. innobase/os/os0file.c: Replace for loop with memset() innobase/page/page0page.c: Replace for loop with memset() innobase/trx/trx0rec.c: Replace for loop with memset()
Diffstat (limited to 'innobase/buf')
-rw-r--r--innobase/buf/buf0buf.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/innobase/buf/buf0buf.c b/innobase/buf/buf0buf.c
index 78189617aab..fe4498e6f10 100644
--- a/innobase/buf/buf0buf.c
+++ b/innobase/buf/buf0buf.c
@@ -2101,10 +2101,6 @@ buf_print(void)
n_found = 0;
- for (i = 0 ; i < size; i++) {
- counts[i] = 0;
- }
-
for (i = 0; i < size; i++) {
frame = buf_pool_get_nth_block(buf_pool, i)->frame;