MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Davi Arnaut Date:July 16 2010 5:33pm
Subject:bzr commit into mysql-5.1-bugteam branch (davi:3490) Bug#47139 Bug#48327
View as plain text  
# At a local mysql-5.1-bugteam repository of davi

 3490 Davi Arnaut	2010-07-16
      Bug#48327: Some crashes specific to FreeBSD ("embedded")
      Bug#47139: Test "merge" crashes in "embedded" run
      
      Backport patch for Bug#47139

    modified:
      storage/myisam/mi_dynrec.c
=== modified file 'storage/myisam/mi_dynrec.c'
--- a/storage/myisam/mi_dynrec.c	2010-03-22 12:30:27 +0000
+++ b/storage/myisam/mi_dynrec.c	2010-07-16 17:33:35 +0000
@@ -66,9 +66,12 @@ static int _mi_cmp_buffer(File file, con
 my_bool mi_dynmap_file(MI_INFO *info, my_off_t size)
 {
   DBUG_ENTER("mi_dynmap_file");
-  if (size > (my_off_t) (~((size_t) 0)))
+  if (size == 0 || size > (my_off_t) (~((size_t) 0)))
   {
-    DBUG_PRINT("warning", ("File is too large for mmap"));
+    if (size)
+      DBUG_PRINT("warning", ("File is too large for mmap"));
+    else
+      DBUG_PRINT("warning", ("Do not mmap zero-length"));
     DBUG_RETURN(1);
   }
   /*


Attachment: [text/bzr-bundle] bzr/davi.arnaut@sun.com-20100716173335-1oywbo5p6daiggx3.bundle
Thread
bzr commit into mysql-5.1-bugteam branch (davi:3490) Bug#47139 Bug#48327Davi Arnaut16 Jul