[Bugs] [Bug 1186121] tar on a gluster directory gives message "file changed as we read it" even though no updates to file in progress

bugzilla at redhat.com bugzilla at redhat.com
Thu Feb 5 15:05:01 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1186121



--- Comment #8 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9496 committed in release-3.5 by Niels de Vos
(ndevos at redhat.com) 
------
commit 4b3981d2c9b4cafa24398765b3d0c8a4d45d43b1
Author: Krutika Dhananjay <kdhananj at redhat.com>
Date:   Fri Jan 16 14:26:45 2015 +0530

    cluster/dht: Fix incorrect updates to parent times

            Backport of: http://review.gluster.org/9457

    In directory write FOPs, as far as updates to timestamps associated
    with parent by DHT is concerned, there are three possibilities:
    a) time (in sec) gotten from child of DHT < time (in sec) in inode ctx
    b) time (in sec) gotten from child of DHT = time (in sec) in inode ctx
    c) time (in sec) gotten from child of DHT > time (in sec) in inode ctx

    In case (c), for time in nsecs, it is the value returned by DHT's child
    that must be selected. But what DHT_UPDATE_TIME ends up doing is to choose
    the maximum of (time in nsec gotten from DHT's child, time in nsec in inode
ctx).

    Change-Id: I1388e374c8a2029f3b8919380e68620e7591bde6
    BUG: 1186121
    Signed-off-by: Krutika Dhananjay <kdhananj at redhat.com>
    Reviewed-on: http://review.gluster.org/9496
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
    Reviewed-by: Shyamsundar Ranganathan <srangana at redhat.com>
    Reviewed-by: Niels de Vos <ndevos at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=zakTJ4AkPV&a=cc_unsubscribe


More information about the Bugs mailing list