Update snapshot_util.cc

This commit is contained in:
tg-at-google 2020-07-28 21:13:41 -04:00 committed by GitHub
parent d2ce989ee6
commit 234ddcfdd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -906,8 +906,8 @@ Status DetermineOpState(const std::string& mode_string, bool file_exists,
return Status::OK();
}
int64 expiration_timer = EnvTime::NowMicros()
- pending_snapshot_expiry_seconds * 1000000;
int64 expiration_timer = static_cast<int64>(EnvTime::NowMicros())
- pending_snapshot_expiry_seconds * 1000000;
if (metadata->creation_timestamp() >= expiration_timer) {
// Someone else is already writing and time has not expired.