Re: [PATCH] wrong unix timestamp calculation in hadoop lib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 13, 2012 at 07:12, Andrey Stepachev <octo47@xxxxxxxxx> wrote:
> From: Andrey Stepachev <octo@xxxxxxxxxxxxxx>
>
> Hadoop always see wrong dates due of wrong timestamp calculation.
> Possibly fixes #1666.

Using coarse-grained timestamps might mask the problem in 1666. But it
would only work in certain circumstances such as when clock sync skew
is sufficiently small, and I think edge conditions would continue to
exist. A more robust solution is probably needed for #1666 :(

> Signed-off-by: Andrey Stepachev <octo@xxxxxxxxxxxxxx>
>
> ---
>  src/client/hadoop/CephFSInterface.cc |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
>
> -  long long java_mtime(st.st_mtime);
> +  long long java_mtime(st.st_mtim.tv_sec);

mtime vs mtim: the later is non-portable?
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux