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>
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;