cluster/afr: wakeup delayed post op on fsync
Change-Id: I5d84ef72615f9d71b4af210976e2449de6e02326 BUG: 888174 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/4446 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
This commit is contained in:
parent
36a9ac82f0
commit
360868e9b0
@ -2557,11 +2557,7 @@ afr_flush (call_frame_t *frame, xlator_t *this, fd_t *fd, dict_t *xdata)
|
||||
local->fd = fd_ref(fd);
|
||||
call_count = local->call_count;
|
||||
|
||||
/*
|
||||
* Ideally we should synchronize flush against completion of writing
|
||||
* the delayed changelog, but for now we just push it out first...
|
||||
*/
|
||||
afr_delayed_changelog_wake_up(this, fd);
|
||||
afr_delayed_changelog_wake_up (this, fd);
|
||||
|
||||
for (i = 0; i < priv->child_count; i++) {
|
||||
if (local->child_up[i]) {
|
||||
@ -2739,6 +2735,8 @@ afr_fsync (call_frame_t *frame, xlator_t *this, fd_t *fd,
|
||||
|
||||
local->fd = fd_ref (fd);
|
||||
|
||||
afr_delayed_changelog_wake_up (this, fd);
|
||||
|
||||
for (i = 0; i < priv->child_count; i++) {
|
||||
if (local->child_up[i]) {
|
||||
STACK_WIND_COOKIE (frame, afr_fsync_cbk,
|
||||
|
Loading…
x
Reference in New Issue
Block a user