Feature #561
- Added ability to temporarily suspend GC (rc.gc:0) for a given command, which helps scriptwriters implement shadow files externally (thanks to Sander Marechal).
This commit is contained in:
@@ -596,6 +596,10 @@ int TDB::gc ()
|
||||
{
|
||||
Timer t ("TDB::gc");
|
||||
|
||||
// Allowed as a temporary override.
|
||||
if (!context.config.getBoolean ("gc"))
|
||||
return 0;
|
||||
|
||||
int count_pending_changes = 0;
|
||||
int count_completed_changes = 0;
|
||||
Date now;
|
||||
|
||||
Reference in New Issue
Block a user