[ARVADOS] updated: 1.3.0-3174-g7e503a238

Git user git at public.arvados.org
Thu Sep 17 13:20:53 UTC 2020


Summary of changes:
 services/keepstore/s3aws_volume.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

       via  7e503a238d67b79a9f87e50086ca217d4873726e (commit)
      from  f317fc0d8e77ce950b6a650149600b0c8f6c38f3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 7e503a238d67b79a9f87e50086ca217d4873726e
Author: Tom Clegg <tom at tomclegg.ca>
Date:   Thu Sep 17 09:20:16 2020 -0400

    16842: Truncate timestamp precision in new S3 driver, too.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at tomclegg.ca>

diff --git a/services/keepstore/s3aws_volume.go b/services/keepstore/s3aws_volume.go
index c9fa7fce5..d07d23c3c 100644
--- a/services/keepstore/s3aws_volume.go
+++ b/services/keepstore/s3aws_volume.go
@@ -728,7 +728,10 @@ func (v *S3AWSVolume) IndexTo(prefix string, writer io.Writer) error {
 		if err := recentL.Error(); err != nil {
 			return err
 		}
-		fmt.Fprintf(writer, "%s+%d %d\n", *data.Key, *data.Size, stamp.LastModified.UnixNano())
+		// We truncate sub-second precision here. Otherwise
+		// timestamps will never match the RFC1123-formatted
+		// Last-Modified values parsed by Mtime().
+		fmt.Fprintf(writer, "%s+%d %d\n", *data.Key, *data.Size, stamp.LastModified.Unix()*1000000000)
 	}
 	return dataL.Error()
 }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list