guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

296/376: Disable vacuuming the DB after garbage collection


From: Ludovic Courtès
Subject: 296/376: Disable vacuuming the DB after garbage collection
Date: Wed, 28 Jan 2015 22:05:44 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit 8299aaf07988a3ca7ecda3526b7e25a885550db5
Author: Eelco Dolstra <address@hidden>
Date:   Wed Nov 19 18:02:39 2014 +0100

    Disable vacuuming the DB after garbage collection
    
    Especially in WAL mode on a highly loaded machine, this is not a good
    idea because it results in a WAL file of approximately the same size
    ad the database, which apparently cannot be deleted while anybody is
    accessing it.
---
 src/libstore/gc.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index 0806430..49cb11d 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -724,7 +724,7 @@ void LocalStore::collectGarbage(const GCOptions & options, 
GCResults & results)
     }
 
     /* While we're at it, vacuum the database. */
-    if (options.action == GCOptions::gcDeleteDead) vacuumDB();
+    //if (options.action == GCOptions::gcDeleteDead) vacuumDB();
 }
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]