You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Weijun-H (via GitHub)" <gi...@apache.org> on 2023/03/03 16:10:20 UTC

[GitHub] [arrow-rs] Weijun-H commented on a diff in pull request #3796: Make InMemory object store track last modified time for each entry

Weijun-H commented on code in PR #3796:
URL: https://github.com/apache/arrow-rs/pull/3796#discussion_r1124673313


##########
object_store/src/memory.rs:
##########
@@ -238,13 +240,13 @@ impl ObjectStore for InMemory {
     }
 
     async fn copy(&self, from: &Path, to: &Path) -> Result<()> {
-        let data = self.get_bytes(from).await?;
+        let data = self.entry(from).await?;

Review Comment:
   like this `self.storage.write().insert(to.clone(), (data.0, DateTime::from(Utc::now())));`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org