summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2017-08-31 12:33:46 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2017-08-31 14:57:31 +0000
commit66eb9774e43dc96e7d45d800b4860354f81d258d (patch)
tree7d460348551668a73bc16045d264ab80c8f6a11b
parenteb389d5c390969b17d433d7a8710d87aa8b55a5f (diff)
downloadmariadb-git-66eb9774e43dc96e7d45d800b4860354f81d258d.tar.gz
MDEV-13691 : my_write() sets inappropriate errno for ERROR_FILE_SYSTEM_LIMITATON
ERROR_FILE_SYSTEM_LIMITATION was seen by support when backing up large file. However mariabackup error message was not very helpful, since it mapped the error to generic catch-all EINVAL. With the patch, ERROR_FILE_SYSTEM_LIMITATION will be mapped to more appropriate EFBIG. Also add mapping from ERROR_NO_SYSTEM_RESOURCES to ENOMEM.
-rw-r--r--mysys/my_winerr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mysys/my_winerr.c b/mysys/my_winerr.c
index 15f52dd7f37..9577db09eaf 100644
--- a/mysys/my_winerr.c
+++ b/mysys/my_winerr.c
@@ -75,7 +75,9 @@ static struct errentry errtable[]= {
{ ERROR_ALREADY_EXISTS, EEXIST }, /* 183 */
{ ERROR_FILENAME_EXCED_RANGE, ENOENT }, /* 206 */
{ ERROR_NESTING_NOT_ALLOWED, EAGAIN }, /* 215 */
- { ERROR_NOT_ENOUGH_QUOTA, ENOMEM } /* 1816 */
+ { ERROR_FILE_SYSTEM_LIMITATION, EFBIG }, /* 665 */
+ { ERROR_NO_SYSTEM_RESOURCES, ENOMEM }, /* 1450 */
+ { ERROR_NOT_ENOUGH_QUOTA, ENOMEM } /* 1816 */
};
/* size of the table */