Procházet zdrojové kódy

Reduce MDB map size on debug (for Valgrind).

Stefano Cossu před 4 roky
rodič
revize
fd7a329b66
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      src/store_mdb.c

+ 3 - 1
src/store_mdb.c

@@ -10,7 +10,9 @@
 /**
  * Memory map size.
  */
-#if !(defined __LP64__ || defined __LLP64__) || \
+#if (defined DEBUG)
+    #define DEFAULT_MAPSIZE 1<<24 // 16Mb (limit for Valgrind)
+#elif !(defined __LP64__ || defined __LLP64__) || \
         defined _WIN32 && !defined _WIN64
     #define DEFAULT_MAPSIZE 1<<31 // 2Gb (limit for 32-bit systems)
 #else