Skip to content

Commit b6db05d

Browse files
committed
Permit unchecked error
For GetCurrentTime() call in GetSnapshot, explicitly ignore checking the error.
1 parent 8472894 commit b6db05d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/db_impl/db_impl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2932,7 +2932,7 @@ const Snapshot* DBImpl::GetSnapshotForWriteConflictBoundary() {
29322932
SnapshotImpl* DBImpl::GetSnapshotImpl(bool is_write_conflict_boundary,
29332933
bool lock) {
29342934
int64_t unix_time = 0;
2935-
env_->GetCurrentTime(&unix_time); // Ignore error
2935+
env_->GetCurrentTime(&unix_time).PermitUncheckedError(); // Ignore error
29362936
SnapshotImpl* s = new SnapshotImpl;
29372937

29382938
if (lock) {

0 commit comments

Comments
 (0)