SetL0Retention updates the retention window for L0 files and propagates it to all managed databases.
(d time.Duration)
| 464 | // SetL0Retention updates the retention window for L0 files and propagates it to |
| 465 | // all managed databases. |
| 466 | func (s *Store) SetL0Retention(d time.Duration) { |
| 467 | s.mu.Lock() |
| 468 | defer s.mu.Unlock() |
| 469 | s.L0Retention = d |
| 470 | for _, db := range s.dbs { |
| 471 | db.L0Retention = d |
| 472 | } |
| 473 | } |
| 474 | |
| 475 | // SetDone sets the done channel used for interrupt handling during shutdown |
| 476 | // and propagates it to all managed databases. |