diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-10-22 05:37:36 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-22 04:15:43 -0700 |
commit | d5009323b3031122508fbd8daa61025b7c397e3c (patch) | |
tree | 66ed1dc2cdba7f8bda17b2d8ea12b61f4e066b57 /xlators/mount/fuse/src/fuse-bridge.c | |
parent | 1fe48896b950e74b589a8ed2c62bfb8571a0bf16 (diff) |
cluster/afr: entry self-heal: Set parent directory's attributes using a new frame.
There was a race condition in assuming that afr_sh_entry_impunge_parent_setattr_cbk will
always return before impunge_xattrop_cbk and impunge_setattr_cbk.
This patch fixes two additional problems:
1) Building the parent_loc from impunge_local->loc after STACK_WIND to
impunge_xattrop_cbk has happened. In a simple afr-posix configuration
the stack will have been destroyed by the time building of parent_loc is
attempted.
2) parent_loc built in impunge_newfile_cbk was not being loc_wipe'd.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 137 (Parent directory mtime not reset after a create in self-heal)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=137
Diffstat (limited to 'xlators/mount/fuse/src/fuse-bridge.c')
0 files changed, 0 insertions, 0 deletions