Permit unchecked error

For GetCurrentTime() call in GetSnapshot, explicitly ignore checking the
error.
This commit is contained in:
Yanqin Jin 2020-11-05 12:25:19 -08:00
parent 84728944d3
commit b6db05dbb5

View File

@ -2932,7 +2932,7 @@ const Snapshot* DBImpl::GetSnapshotForWriteConflictBoundary() {
SnapshotImpl* DBImpl::GetSnapshotImpl(bool is_write_conflict_boundary, SnapshotImpl* DBImpl::GetSnapshotImpl(bool is_write_conflict_boundary,
bool lock) { bool lock) {
int64_t unix_time = 0; int64_t unix_time = 0;
env_->GetCurrentTime(&unix_time); // Ignore error env_->GetCurrentTime(&unix_time).PermitUncheckedError(); // Ignore error
SnapshotImpl* s = new SnapshotImpl; SnapshotImpl* s = new SnapshotImpl;
if (lock) { if (lock) {