From 0dae022ddf8c89d2de85a1204678b980efbedfa8 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 16 Jul 2015 14:04:07 +0800 Subject: [PATCH] cls: fix the build on i386 time_t is more a arithmetic type. and it's not portable. it's always defined as "long int" by libc. and we have no encode(int, bl), which is expected. so a safe way is to use int64_t for presenting the mtime returned from the stat() call. Signed-off-by: Kefu Chai --- src/cls/cephfs/cls_cephfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cls/cephfs/cls_cephfs.h b/src/cls/cephfs/cls_cephfs.h index 2cbc76b47ab9b..3cee0db75e2cf 100644 --- a/src/cls/cephfs/cls_cephfs.h +++ b/src/cls/cephfs/cls_cephfs.h @@ -59,7 +59,7 @@ class AccumulateArgs public: uint64_t obj_index; uint64_t obj_size; - time_t mtime; + int64_t mtime; std::string obj_xattr_name; std::string mtime_xattr_name; std::string obj_size_xattr_name; -- 2.39.5