1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

mi_keycache.c:

Removed FLUSH_REMOVE flag (replaced it by FLUSH_RELEASE).
my_sys.h:
  Removed FLUSH_REMOVE flag.


include/my_sys.h:
  Removed FLUSH_REMOVE flag.
myisam/mi_keycache.c:
  Removed FLUSH_REMOVE flag (replaced it by FLUSH_RELEASE).
This commit is contained in:
unknown
2003-11-25 22:20:31 -08:00
parent 345a84ca25
commit ceb0ce5002
2 changed files with 3 additions and 4 deletions

View File

@@ -265,8 +265,7 @@ enum cache_type
enum flush_type enum flush_type
{ {
FLUSH_KEEP, FLUSH_RELEASE, FLUSH_IGNORE_CHANGED, FLUSH_FORCE_WRITE, FLUSH_KEEP, FLUSH_RELEASE, FLUSH_IGNORE_CHANGED, FLUSH_FORCE_WRITE
FLUSH_REMOVE
}; };
typedef struct st_record_cache /* Used when cacheing records */ typedef struct st_record_cache /* Used when cacheing records */

View File

@@ -76,7 +76,7 @@ int mi_assign_to_key_cache(MI_INFO *info,
in the old key cache. in the old key cache.
*/ */
if (flush_key_blocks(share->key_cache, share->kfile, FLUSH_REMOVE)) if (flush_key_blocks(share->key_cache, share->kfile, FLUSH_RELEASE))
{ {
error= my_errno; error= my_errno;
mi_mark_crashed(info); /* Mark that table must be checked */ mi_mark_crashed(info); /* Mark that table must be checked */
@@ -90,7 +90,7 @@ int mi_assign_to_key_cache(MI_INFO *info,
(This can never fail as there is never any not written data in the (This can never fail as there is never any not written data in the
new key cache) new key cache)
*/ */
(void) flush_key_blocks(key_cache, share->kfile, FLUSH_REMOVE); (void) flush_key_blocks(key_cache, share->kfile, FLUSH_RELEASE);
/* /*
ensure that setting the key cache and changing the multi_key_cache ensure that setting the key cache and changing the multi_key_cache