| 1168 | } |
| 1169 | |
| 1170 | void DBImpl::RecordReadSample(Slice key) { |
| 1171 | MutexLock l(&mutex_); |
| 1172 | if (versions_->current()->RecordReadSample(key)) { |
| 1173 | MaybeScheduleCompaction(); |
| 1174 | } |
| 1175 | } |
| 1176 | |
| 1177 | const Snapshot* DBImpl::GetSnapshot() { |
| 1178 | MutexLock l(&mutex_); |