Skip to content

Commit

Permalink
Trying to check if removing file validity assertions works as no way …
Browse files Browse the repository at this point in the history
…to test on local system

Signed-off-by: Ankit Saurabh <[email protected]>
  • Loading branch information
Ankit Saurabh committed Nov 2, 2023
1 parent 83458b4 commit 1b89a7a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mountpoint-s3/src/inode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,6 @@ impl Superblock {
return Err(InodeError::SetAttrNotPermittedOnRemoteInode(inode.err()));
}

// Should be impossible since local file stat never expire.
if !sync.stat.is_valid() {
error!(?ino, "local inode stat already expired");
return Err(InodeError::SetAttrOnExpiredStat(inode.err()));
}

if let Some(t) = atime {
sync.stat.atime = t;
}
Expand Down Expand Up @@ -334,7 +328,6 @@ impl Superblock {
return Err(InodeError::FileAlreadyExists(inode.err()));
}

// Local inode stats never expire, because they can't be looked up remotely
let stat = match kind {
// Objects don't have an ETag until they are uploaded to S3
InodeKind::File => InodeStat::for_file(
Expand Down

0 comments on commit 1b89a7a

Please sign in to comment.