gc_worker: disable green GC by default (#17089)

This commit is contained in:
Lei Zhao
2020-05-11 16:16:35 +08:00
committed by GitHub
parent d8c0659681
commit 8de9667a3b
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ const (
gcScanLockModeKey = "tikv_gc_scan_lock_mode"
gcScanLockModeLegacy = "legacy"
gcScanLockModePhysical = "physical"
gcScanLockModeDefault = gcScanLockModePhysical
gcScanLockModeDefault = gcScanLockModeLegacy
gcAutoConcurrencyKey = "tikv_gc_auto_concurrency"
gcDefaultAutoConcurrency = true

View File

@ -472,7 +472,7 @@ func (s *testGCWorkerSuite) TestCheckGCMode(c *C) {
func (s *testGCWorkerSuite) TestCheckScanLockMode(c *C) {
usePhysical, err := s.gcWorker.checkUsePhysicalScanLock()
c.Assert(err, IsNil)
c.Assert(usePhysical, Equals, true)
c.Assert(usePhysical, Equals, false)
// This is a hidden config, so default value will not be inserted to table.
str, err := s.gcWorker.loadValueFromSysTable(gcScanLockModeKey)
c.Assert(err, IsNil)