diff options
author | unknown <hf@deer.(none)> | 2003-07-14 12:40:58 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2003-07-14 12:40:58 +0500 |
commit | 02808985ddbd3102a51fe7a008d9f31a3ed169e2 (patch) | |
tree | 68da54f595c64ddbe52b1d77fcc1a9febbe0b56b /myisam/myisamdef.h | |
parent | c4381bb0c61a3e51320830d7f00c8bb67c889fae (diff) | |
download | mariadb-git-02808985ddbd3102a51fe7a008d9f31a3ed169e2.tar.gz |
Proposed bugfix for #712
Monty revoked any locks for temporary tables in
ha_myisam::external_lock()
But further code bans using write cache on nonlocked tables
this makes operations much slower
myisam/mi_locking.c:
Handling of MI_TEMPORARY_TABLE lock
myisam/myisamdef.h:
defining of MI_TEMPORARY_TABLE
sql/ha_myisam.cc:
now we lock temporary tables using MI_TEMPORARY_TABLE lock
Diffstat (limited to 'myisam/myisamdef.h')
-rw-r--r-- | myisam/myisamdef.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/myisam/myisamdef.h b/myisam/myisamdef.h index 7631b245b9b..9c2f34990ed 100644 --- a/myisam/myisamdef.h +++ b/myisam/myisamdef.h @@ -101,6 +101,7 @@ typedef struct st_mi_state_info #define MI_COLUMNDEF_SIZE (2*3+1) #define MI_BASE_INFO_SIZE (5*8 + 8*4 + 4 + 4*2 + 16) #define MI_INDEX_BLOCK_MARGIN 16 /* Safety margin for .MYI tables */ +#define MI_TEMPORARY_TABLE ((1 & ~F_RDLCK) | (2 & ~F_WRLCK) | (4 & ~F_UNLCK)) typedef struct st_mi_base_info { |