]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/pkgcachegen.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 6 Aug 2007 16:21:40 +0000 (18:21 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 6 Aug 2007 16:21:40 +0000 (18:21 +0200)
  - increase default mmap size (LP: #125640)

apt-pkg/pkgcachegen.cc
debian/changelog

index 4e186f4669e5b582eea0b9dd62bfbedee9f0337b..d00cd4e646b120641cf5cde2359956860419f3d2 100644 (file)
@@ -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)
index 8dbe214ea6ecaef464f7844b82bfaff06cadf9d8..6861a1ba8e60100e1eaa1b8a4276923c3de421a0 100644 (file)
@@ -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)
 
  --