After a self-heal, mtimes of the two files will be *exactly* the same,
because we explicitly set the mtime using utime() call.

In normal operations they will differ as much as the time drift between the
servers + lag in delivery/issue of write() calls on the servers. This delta
is "fixed up" by consistently returning the highest of the two mtimes
whenever queried.

Avati


On Fri, Oct 25, 2013 at 11:17 AM, James <[email protected]> wrote:

> On Fri, Oct 25, 2013 at 1:46 PM, Anand Avati <[email protected]> wrote:
> > Gluster's replication is synchronous. So writes are done in parallel. If
> a
> > server was down and we self-heal it later, we sync both data and mtime.
>
> Which is why the mtime of the two files should be the "greatest" of
> the mtimes... Is this the case, or rather, what is the case? Will the
> two files have the exact same mtime? I actually don't care what the
> mtime is, but I think it should be consistent.
>
_______________________________________________
Gluster-users mailing list
[email protected]
http://supercolony.gluster.org/mailman/listinfo/gluster-users

Reply via email to