"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xlators/mgmt/glusterd/src/glusterd-locks.c" between
glusterfs-8.5.tar.gz and glusterfs-8.6.tar.gz

About: GlusterFS is a network/cluster filesystem. The storage server (or each in a cluster) runs glusterfsd and the clients use mount command or glusterfs client to mount the exported filesystem. Release series 8.x.

glusterd-locks.c  (glusterfs-8.5):glusterd-locks.c  (glusterfs-8.6)
skipping to change at line 612 skipping to change at line 612
mgmt_lock_timer = GF_CALLOC(1, sizeof(glusterd_mgmt_v3_lock_timer), mgmt_lock_timer = GF_CALLOC(1, sizeof(glusterd_mgmt_v3_lock_timer),
gf_common_mt_mgmt_v3_lock_timer_t); gf_common_mt_mgmt_v3_lock_timer_t);
if (!mgmt_lock_timer) { if (!mgmt_lock_timer) {
ret = -1; ret = -1;
goto out; goto out;
} }
mgmt_lock_timer->xl = THIS; mgmt_lock_timer->xl = THIS;
/*changing to default timeout value*/
priv->mgmt_v3_lock_timeout = GF_LOCK_TIMER;
ret = -1; ret = -1;
mgmt_lock_timer_xl = mgmt_lock_timer->xl; mgmt_lock_timer_xl = mgmt_lock_timer->xl;
if (!mgmt_lock_timer_xl) { if (!mgmt_lock_timer_xl) {
GF_FREE(mgmt_lock_timer); GF_FREE(mgmt_lock_timer);
goto out; goto out;
} }
mgmt_lock_timer_ctx = mgmt_lock_timer_xl->ctx; mgmt_lock_timer_ctx = mgmt_lock_timer_xl->ctx;
if (!mgmt_lock_timer_ctx) { if (!mgmt_lock_timer_ctx) {
GF_FREE(mgmt_lock_timer); GF_FREE(mgmt_lock_timer);
goto out; goto out;
} }
key_dup = gf_strdup(key); key_dup = gf_strdup(key);
delay.tv_sec = priv->mgmt_v3_lock_timeout; delay.tv_sec = priv->mgmt_v3_lock_timeout;
delay.tv_nsec = 0; delay.tv_nsec = 0;
/*changing to default timeout value*/
priv->mgmt_v3_lock_timeout = GF_LOCK_TIMER;
mgmt_lock_timer->timer = gf_timer_call_after( mgmt_lock_timer->timer = gf_timer_call_after(
mgmt_lock_timer_ctx, delay, gd_mgmt_v3_unlock_timer_cbk, key_dup); mgmt_lock_timer_ctx, delay, gd_mgmt_v3_unlock_timer_cbk, key_dup);
ret = dict_set_bin(priv->mgmt_v3_lock_timer, key, mgmt_lock_timer, ret = dict_set_bin(priv->mgmt_v3_lock_timer, key, mgmt_lock_timer,
sizeof(glusterd_mgmt_v3_lock_timer)); sizeof(glusterd_mgmt_v3_lock_timer));
if (ret) { if (ret) {
gf_msg(this->name, GF_LOG_ERROR, 0, GD_MSG_DICT_SET_FAILED, gf_msg(this->name, GF_LOG_ERROR, 0, GD_MSG_DICT_SET_FAILED,
"Unable to set timer in mgmt_v3 lock"); "Unable to set timer in mgmt_v3 lock");
GF_FREE(key_dup); GF_FREE(key_dup);
GF_FREE(mgmt_lock_timer); GF_FREE(mgmt_lock_timer);
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)