]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls: fix the build on i386
authorKefu Chai <kchai@redhat.com>
Thu, 16 Jul 2015 06:04:07 +0000 (14:04 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 16 Jul 2015 06:04:08 +0000 (14:04 +0800)
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 <kchai@redhat.com>
src/cls/cephfs/cls_cephfs.h

index 2cbc76b47ab9b919577502c333d4c67b5bfc772b..3cee0db75e2cf491bc5d546cd2ec954ee4ab5407 100644 (file)
@@ -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;