diff options
author | unknown <msvensson@neptunus.(none)> | 2006-09-12 16:13:00 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-09-12 16:13:00 +0200 |
commit | 22ce97e3543b5da5c708f8f71fb89d43f169e615 (patch) | |
tree | ff74a9b7b9222886b7a75e95129d10eaafa1c83d /storage | |
parent | 1fff863add9c908869a0cc0610edc7bc08dcf8c6 (diff) | |
parent | 381f39670a8b8da0d9b5da73c976edc3a03c1ab4 (diff) | |
download | mariadb-git-22ce97e3543b5da5c708f8f71fb89d43f169e615.tar.gz |
Merge bk-internal:/home/bk/mysql-5.1-new-maint
into neptunus.(none):/home/msvensson/mysql/mysql-5.1-new-maint
Diffstat (limited to 'storage')
-rw-r--r-- | storage/myisam/mi_locking.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/storage/myisam/mi_locking.c b/storage/myisam/mi_locking.c index ecb737867f5..18b87281f26 100644 --- a/storage/myisam/mi_locking.c +++ b/storage/myisam/mi_locking.c @@ -236,7 +236,18 @@ int mi_lock_database(MI_INFO *info, int lock_type) default: break; /* Impossible */ } + } +#ifdef __WIN__ + else + { + /* + The file has been closed and kfile is -1. + See mi_extra.c about implementation of + HA_EXTRA_PREPARE_FOR_DELETE. + */ + error=HA_ERR_NO_SUCH_TABLE; } +#endif pthread_mutex_unlock(&share->intern_lock); #if defined(FULL_LOG) || defined(_lint) lock_type|=(int) (flag << 8); /* Set bit to set if real lock */ |