Permit unchecked error
For GetCurrentTime() call in GetSnapshot, explicitly ignore checking the error.
This commit is contained in:
parent
84728944d3
commit
b6db05dbb5
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user