From: Kefu Chai Date: Thu, 16 Jul 2015 06:04:07 +0000 (+0800) Subject: cls: fix the build on i386 X-Git-Tag: v9.0.3~24^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0dae022ddf8c89d2de85a1204678b980efbedfa8;p=ceph.git 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 --- diff --git a/src/cls/cephfs/cls_cephfs.h b/src/cls/cephfs/cls_cephfs.h index 2cbc76b47ab9..3cee0db75e2c 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;