Skip to content

Commit af6fdc1

Browse files
committed
Merge 10.1 into 10.2
2 parents ca76fc4 + 346e460 commit af6fdc1

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

storage/maria/ma_delete.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,9 +695,7 @@ static int del(MARIA_HA *info, MARIA_KEY *key,
695695
key_start= keypos;
696696
if (tmp_key.flag & (SEARCH_USER_KEY_HAS_TRANSID |
697697
SEARCH_PAGE_KEY_HAS_TRANSID))
698-
{
699698
_ma_mark_page_with_transid(share, anc_page);
700-
}
701699

702700
/* Save pointer to next leaf on parent page */
703701
if (!(*keyinfo->get_key)(&ret_key, page_flag, share->base.key_reflength,

storage/maria/ma_write.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,9 +844,8 @@ int _ma_insert(register MARIA_HA *info, MARIA_KEY *key,
844844
a_length+=t_length;
845845

846846
if (key->flag & (SEARCH_USER_KEY_HAS_TRANSID | SEARCH_PAGE_KEY_HAS_TRANSID))
847-
{
848847
_ma_mark_page_with_transid(share, anc_page);
849-
}
848+
850849
anc_page->size= a_length;
851850
page_store_size(share, anc_page);
852851

storage/maria/maria_def.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,8 @@ struct st_maria_handler
778778
transid_korr((buff) + LSN_STORE_SIZE)
779779
#define _ma_store_keypage_flag(share,x,flag) x[(share)->keypage_header - KEYPAGE_USED_SIZE - KEYPAGE_FLAG_SIZE]= (flag)
780780
#define _ma_mark_page_with_transid(share, page) \
781-
(page)->flag|= KEYPAGE_FLAG_HAS_TRANSID; \
782-
(page)->buff[(share)->keypage_header - KEYPAGE_USED_SIZE - KEYPAGE_FLAG_SIZE]= (page)->flag;
781+
do { (page)->flag|= KEYPAGE_FLAG_HAS_TRANSID; \
782+
(page)->buff[(share)->keypage_header - KEYPAGE_USED_SIZE - KEYPAGE_FLAG_SIZE]= (page)->flag; } while (0)
783783

784784
#define KEYPAGE_KEY_VERSION(share, x) ((x) + \
785785
(share)->keypage_header - \

0 commit comments

Comments
 (0)