Skip to content

Commit

Permalink
Remove debug prints
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hagemeier <chagem@amazon.com>
  • Loading branch information
c-hagem committed Nov 11, 2024
1 parent 5a4b55b commit 65c4e92
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions mountpoint-s3/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,10 @@ where
};

let is_read_filehandle = match state {
FileHandleState::Read{..} => true,
_ => false
FileHandleState::Read { .. } => true,
_ => false,
};
debug!("{}", if is_read_filehandle {"opening for read"} else {"not opening for read"});

let fh = self.next_handle();
let handle = FileHandle {
inode,
Expand All @@ -348,8 +348,8 @@ where
debug!(fh, ino, "new file handle created");
self.file_handles.write().await.insert(fh, Arc::new(handle));

let reply_flags = (if direct_io { FOPEN_DIRECT_IO } else { 0 }) | (if is_read_filehandle {1 << 5} else {0});
debug!("Set flags as {reply_flags}");
let reply_flags = (if direct_io { FOPEN_DIRECT_IO } else { 0 }) | (if is_read_filehandle { 1 << 5 } else { 0 });
debug!("Set read file flags as {reply_flags}");
Ok(Opened { fh, flags: reply_flags })
}

Expand Down Expand Up @@ -717,7 +717,6 @@ where
None => return Err(err!(libc::EBADF, "invalid file handle")),
}
};
debug!("Called flush on {_ino}");
logging::record_name(file_handle.inode.name());
let mut state = file_handle.state.lock().await;
match &mut *state {
Expand Down

0 comments on commit 65c4e92

Please sign in to comment.