Skip to content

Commit 7cb1609

Browse files
committed
Changed debug label XXX in ma_pagecache.cc XXX to proper lables
1 parent 82d2dc9 commit 7cb1609

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

storage/maria/ma_pagecache.c

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,8 +1373,8 @@ static void link_block(PAGECACHE *pagecache, PAGECACHE_BLOCK_LINK *block,
13731373
}
13741374
}
13751375
while (thread != last_thread);
1376-
DBUG_PRINT("XXX", ("hash_link (link block): %p, hash_link: %p -> %p",
1377-
hash_link, hash_link->block, block));
1376+
DBUG_PRINT("hash", ("hash_link (link block): %p, hash_link: %p -> %p",
1377+
hash_link, hash_link->block, block));
13781378
hash_link->block= block;
13791379
/* Ensure that no other thread tries to use this block */
13801380
block->status|= PCBLOCK_REASSIGNED;
@@ -1662,8 +1662,8 @@ static inline void link_hash(PAGECACHE_HASH_LINK **start,
16621662
static void unlink_hash(PAGECACHE *pagecache, PAGECACHE_HASH_LINK *hash_link)
16631663
{
16641664
DBUG_ENTER("unlink_hash");
1665-
DBUG_PRINT("enter", ("hash_link: %p fd: %u pos: %lu requests: %u",
1666-
hash_link, (uint) hash_link->file.file,
1665+
DBUG_PRINT("enter", ("hash_link: %p block: %p fd: %u pos: %lu requests: %u",
1666+
hash_link, hash_link->block, (uint) hash_link->file.file,
16671667
(ulong) hash_link->pageno,
16681668
hash_link->requests));
16691669
DBUG_ASSERT(hash_link->requests == 0);
@@ -1672,8 +1672,6 @@ static void unlink_hash(PAGECACHE *pagecache, PAGECACHE_HASH_LINK *hash_link)
16721672
if ((*hash_link->prev= hash_link->next))
16731673
hash_link->next->prev= hash_link->prev;
16741674

1675-
DBUG_PRINT("XXX", ("hash_link (unlink): %p, hash_link: %p -> NULL",
1676-
hash_link, hash_link->block));
16771675
hash_link->block= NULL;
16781676
if (pagecache->waiting_for_hash_link.last_thread)
16791677
{
@@ -2048,11 +2046,11 @@ static PAGECACHE_BLOCK_LINK *find_block(PAGECACHE *pagecache,
20482046
/* This is a request for a new page or for a page not to be removed */
20492047
if (! block)
20502048
{
2051-
DBUG_PRINT("XXX", ("request for a new page"));
2049+
DBUG_PRINT("info", ("request for a new page"));
20522050
/* No block is assigned for the page yet */
20532051
if (pagecache->blocks_unused)
20542052
{
2055-
DBUG_PRINT("XXX", ("there is never used blocks"));
2053+
DBUG_PRINT("info", ("there is never used blocks"));
20562054
if (pagecache->free_block_list)
20572055
{
20582056
/* There is a block in the free list. */
@@ -2086,11 +2084,13 @@ static PAGECACHE_BLOCK_LINK *find_block(PAGECACHE *pagecache,
20862084
block->last_hit_time= 0;
20872085
block->rec_lsn= LSN_MAX;
20882086
link_to_file_list(pagecache, block, file, 0);
2089-
DBUG_PRINT("XXX", ("block (no block assigned): %p, hash_link: %p -> %p",
2090-
block, block->hash_link, hash_link));
2087+
DBUG_PRINT("hash",
2088+
("block (no block assigned): %p hash_link: %p -> %p",
2089+
block, block->hash_link, hash_link));
20912090
block->hash_link= hash_link;
2092-
DBUG_PRINT("XXX", ("hash_link (no block assignment): %p, hash_link: %p -> %p",
2093-
hash_link, hash_link->block, block));
2091+
DBUG_PRINT("hash",
2092+
("hash_link (no block assignment): %p hash_link: %p -> %p",
2093+
hash_link, hash_link->block, block));
20942094
hash_link->block= block;
20952095
page_status= PAGE_TO_BE_READ;
20962096
DBUG_PRINT("info", ("page to be read set for page %p (%u)",
@@ -2101,7 +2101,7 @@ static PAGECACHE_BLOCK_LINK *find_block(PAGECACHE *pagecache,
21012101
}
21022102
else
21032103
{
2104-
DBUG_PRINT("XXX", ("there is NOT never used blocks"));
2104+
DBUG_PRINT("info", ("there is NOT never used blocks"));
21052105
/* There are no never used blocks, use a block from the LRU chain */
21062106

21072107
/*
@@ -2114,7 +2114,7 @@ static PAGECACHE_BLOCK_LINK *find_block(PAGECACHE *pagecache,
21142114
if (! pagecache->used_last)
21152115
{
21162116
struct st_my_thread_var *thread;
2117-
DBUG_PRINT("XXX", ("there is NOT UNUSED blocks"));
2117+
DBUG_PRINT("info", ("there is NOT UNUSED blocks"));
21182118
/*
21192119
Wait until a new block is added to the LRU chain;
21202120
several threads might wait here for the same page,
@@ -2153,7 +2153,7 @@ static PAGECACHE_BLOCK_LINK *find_block(PAGECACHE *pagecache,
21532153
}
21542154
else
21552155
{
2156-
DBUG_PRINT("XXX", ("take a block from LRU"));
2156+
DBUG_PRINT("info", ("take a block from LRU"));
21572157
/*
21582158
Take the first block from the LRU chain
21592159
unlinking it from the chain
@@ -2175,8 +2175,8 @@ static PAGECACHE_BLOCK_LINK *find_block(PAGECACHE *pagecache,
21752175
}
21762176
if (reg_req)
21772177
reg_requests(pagecache, block, 1);
2178-
DBUG_PRINT("XXX", ("hash_link (LRU): %p, hash_link: %p -> %p",
2179-
hash_link, hash_link->block, block));
2178+
DBUG_PRINT("hash", ("hash_link (LRU): %p, hash_link: %p -> %p",
2179+
hash_link, hash_link->block, block));
21802180
hash_link->block= block;
21812181
DBUG_ASSERT(block->requests == 1);
21822182
}
@@ -2247,8 +2247,8 @@ static PAGECACHE_BLOCK_LINK *find_block(PAGECACHE *pagecache,
22472247
link_to_file_list(pagecache, block, file,
22482248
(my_bool)(block->hash_link ? 1 : 0));
22492249

2250-
DBUG_PRINT("XXX", ("block (LRU): %p, hash_link: %p -> %p",
2251-
block, block->hash_link, hash_link));
2250+
DBUG_PRINT("hash", ("block (LRU): %p, hash_link: %p -> %p",
2251+
block, block->hash_link, hash_link));
22522252
block->hash_link= hash_link;
22532253
PCBLOCK_INFO(block);
22542254
block->hits_left= init_hits_left;
@@ -4602,8 +4602,8 @@ static my_bool free_block(PAGECACHE *pagecache, PAGECACHE_BLOCK_LINK *block,
46024602
block->type= PAGECACHE_EMPTY_PAGE;
46034603
#endif
46044604
block->rec_lsn= LSN_MAX;
4605-
DBUG_PRINT("XXX", ("block (Free): %p, hash_link: %p -> NULL",
4606-
block, block->hash_link));
4605+
DBUG_PRINT("hash", ("block (Free): %p, hash_link: %p -> NULL",
4606+
block, block->hash_link));
46074607
block->hash_link= NULL;
46084608
if (block->temperature == PCBLOCK_WARM)
46094609
pagecache->warm_blocks--;

0 commit comments

Comments
 (0)