summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-op-sm.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-09-07 09:30:29 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-07 09:41:22 -0700
commited561b78d9837b9f799ebb410bcc26b7e5413f33 (patch)
treea618ea9459b83d454df2dbf00b5f330fe966f51d /xlators/mgmt/glusterd/src/glusterd-op-sm.c
parent266df1a7d660dc0b824e6e60903536aff9242f4b (diff)
glusterd: rebalance fixes
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1481 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1481
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index 512ebdc8558..9e37383f5ff 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -1136,6 +1136,7 @@ glusterd_op_create_volume (gd1_mgmt_stage_op_req *req)
}
list_add_tail (&volinfo->vol_list, &priv->volumes);
volinfo->version++;
+ volinfo->defrag_status = 0;
ret = glusterd_store_create_volume (volinfo);
@@ -1290,7 +1291,7 @@ glusterd_op_add_brick (gd1_mgmt_stage_op_req *req)
}
volinfo->version++;
-
+ volinfo->defrag_status = 0;
ret = glusterd_store_update_volume (volinfo);
@@ -2283,7 +2284,7 @@ glusterd_op_remove_brick (gd1_mgmt_stage_op_req *req)
goto out;
volinfo->version++;
-
+ volinfo->defrag_status = 0;
ret = glusterd_store_update_volume (volinfo);