Explorar el Código

* apt-pkg/pkgcachegen.cc:
- increase default mmap size (LP: #125640)

Michael Vogt hace 19 años
padre
commit
c05b6385ee
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. 2 2
      apt-pkg/pkgcachegen.cc
  2. 2 0
      debian/changelog

+ 2 - 2
apt-pkg/pkgcachegen.cc

@@ -781,7 +781,7 @@ static bool BuildCache(pkgCacheGenerator &Gen,
 bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress,
 			MMap **OutMap,bool AllowMem)
 {
-   unsigned long MapSize = _config->FindI("APT::Cache-Limit",16*1024*1024);
+   unsigned long MapSize = _config->FindI("APT::Cache-Limit",24*1024*1024);
    
    vector<pkgIndexFile *> Files;
    for (vector<metaIndex *>::const_iterator i = List.begin();
@@ -928,7 +928,7 @@ bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress,
 /* */
 bool pkgMakeOnlyStatusCache(OpProgress &Progress,DynamicMMap **OutMap)
 {
-   unsigned long MapSize = _config->FindI("APT::Cache-Limit",12*1024*1024);
+   unsigned long MapSize = _config->FindI("APT::Cache-Limit",20*1024*1024);
    vector<pkgIndexFile *> Files;
    unsigned long EndOfSource = Files.size();
    if (_system->AddStatusFiles(Files) == false)

+ 2 - 0
debian/changelog

@@ -2,6 +2,8 @@ apt (0.7.6ubuntu3) gutsy; urgency=low
 
   * apt-pkg/deb/dpkgpm.cc:
     - fix packagename extraction when writting apport reports
+  * apt-pkg/pkgcachegen.cc:
+    - increase default mmap size (LP: #125640)
 
  --