cockroach: Index | Files

package gcjob

import ""


Package Files

descriptor_utils.go gc_job.go gc_job_utils.go index_garbage_collection.go refresh_statuses.go table_garbage_collection.go


var (
    // MaxSQLGCInterval is the longest the polling interval between checking if
    // elements should be GC'd.
    MaxSQLGCInterval = 5 * time.Minute

func SetSmallMaxGCIntervalForTest Uses

func SetSmallMaxGCIntervalForTest() func()

SetSmallMaxGCIntervalForTest sets the MaxSQLGCInterval and then returns a closure that resets it. This is to be used in tests like:

defer SetSmallMaxGCIntervalForTest()

Package gcjob imports 24 packages (graph) and is imported by 3 packages. Updated 2020-08-12. Refresh now. Tools for package owners.