* 32MB cache must be enough for everyone
This commit is contained in:
@@ -1,15 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE Project SYSTEM "Project-3.8.dtd">
|
<!DOCTYPE Project SYSTEM "Project-3.8.dtd">
|
||||||
<!-- Project file for project pisi -->
|
<!-- Project file for project pisi -->
|
||||||
<!-- Saved: 2006-03-21, 15:04:22 -->
|
<!-- Saved: 2006-03-24, 04:11:49 -->
|
||||||
<!-- Copyright (C) 2006 PiSi Development Team, -->
|
<!-- Copyright (C) 2006 PiSi Development Team, pisi@pardus.org.tr -->
|
||||||
<Project version="3.8">
|
<Project version="3.8">
|
||||||
<ProgLanguage mixed="0">Python</ProgLanguage>
|
<ProgLanguage mixed="0">Python</ProgLanguage>
|
||||||
<UIType>Qt</UIType>
|
<UIType>Console</UIType>
|
||||||
<Description>The package management software of Pardus distribution.
|
<Description>The package management software of Pardus distribution.
|
||||||
</Description>
|
</Description>
|
||||||
|
<VersIon></VersIon>
|
||||||
<Author>PiSi Development Team</Author>
|
<Author>PiSi Development Team</Author>
|
||||||
<EmaIl></EmaIl>
|
<EmaIl>pisi@pardus.org.tr</EmaIl>
|
||||||
<Sources>
|
<Sources>
|
||||||
<Source>
|
<Source>
|
||||||
<Dir>tools</Dir>
|
<Dir>tools</Dir>
|
||||||
@@ -520,9 +521,9 @@
|
|||||||
</Vcs>
|
</Vcs>
|
||||||
<FiletypeAssociations>
|
<FiletypeAssociations>
|
||||||
<FiletypeAssociation pattern="*.ui.h" type="FORMS" />
|
<FiletypeAssociation pattern="*.ui.h" type="FORMS" />
|
||||||
<FiletypeAssociation pattern="*.ui" type="FORMS" />
|
|
||||||
<FiletypeAssociation pattern="*.idl" type="INTERFACES" />
|
|
||||||
<FiletypeAssociation pattern="*.py" type="SOURCES" />
|
|
||||||
<FiletypeAssociation pattern="*.ptl" type="SOURCES" />
|
<FiletypeAssociation pattern="*.ptl" type="SOURCES" />
|
||||||
|
<FiletypeAssociation pattern="*.idl" type="INTERFACES" />
|
||||||
|
<FiletypeAssociation pattern="*.ui" type="FORMS" />
|
||||||
|
<FiletypeAssociation pattern="*.py" type="SOURCES" />
|
||||||
</FiletypeAssociations>
|
</FiletypeAssociations>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ def init_dbenv(write=False, writeversion=False):
|
|||||||
db.DB_INIT_LOG | # logging subsystem
|
db.DB_INIT_LOG | # logging subsystem
|
||||||
db.DB_RECOVER | # run normal recovery
|
db.DB_RECOVER | # run normal recovery
|
||||||
db.DB_CREATE) # allow db to create files
|
db.DB_CREATE) # allow db to create files
|
||||||
|
ctx.dbenv.set_cachesize(0, 32*1024*1024)
|
||||||
ctx.dbenv.open(pisi.context.config.db_dir(), flags)
|
ctx.dbenv.open(pisi.context.config.db_dir(), flags)
|
||||||
ctx.dbenv.set_flags(db.DB_LOG_AUTOREMOVE, 1) # clear inactive logs automatically
|
ctx.dbenv.set_flags(db.DB_LOG_AUTOREMOVE, 1) # clear inactive logs automatically
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user