Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: don't GC if protected timestamp information isn't available
We only want to run GC on a replica that some PTS information (even if it's stale). We don't want to run GC on a replica if no PTS information is available however. This can happen if a Replica is being considered for GC before the initial scan of the KVSubscriber has completed. This wasn't an issue before this patch for implicit reasons -- this patch just makes the check explicit and adds a test. Previously, we wouldn't run GC if no PTS information was available because our lease was guaranteed to be newer than the empty timestamp. Release note: None
- Loading branch information