diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-10-12 03:06:30 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-12 02:39:01 -0700 |
commit | 9bad9d59f0f19fe20f90c6ed80e25c7db08b3371 (patch) | |
tree | 05dc2622a1ab6e00930f3846bd79cf560e8a939e /xlators/cluster/afr/src | |
parent | f637330995eab92a1d0b9f4ad9c43acfaad35037 (diff) |
Change assert to GF_ASSERT
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'xlators/cluster/afr/src')
-rw-r--r-- | xlators/cluster/afr/src/afr-common.c | 4 | ||||
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-common.c | 2 | ||||
-rw-r--r-- | xlators/cluster/afr/src/pump.c | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index 368a334230e..4ef11cb1bc8 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -2451,10 +2451,10 @@ afr_priv_dump (xlator_t *this) int i = 0; - assert(this); + GF_ASSERT (this); priv = this->private; - assert(priv); + GF_ASSERT (priv); snprintf(key_prefix, GF_DUMP_MAX_BUF_LEN, "%s.%s", this->type, this->name); gf_proc_dump_add_section(key_prefix); gf_proc_dump_build_key(key, key_prefix, "child_count"); diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index c0c5e4c2c24..1bb395cc387 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -1639,7 +1639,7 @@ void afr_self_heal_type_str_get (afr_self_heal_t *self_heal_p, char *str, size_t size) { - assert(str && (size > 0)); + GF_ASSERT (str && (size > 0)); if (self_heal_p->need_metadata_self_heal) { snprintf(str, size, " meta-data"); diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c index 3bb9b851d30..a162d3fa164 100644 --- a/xlators/cluster/afr/src/pump.c +++ b/xlators/cluster/afr/src/pump.c @@ -135,7 +135,7 @@ pump_set_resume_path (xlator_t *this, const char *path) priv = this->private; pump_priv = priv->pump_private; - assert (pump_priv); + GF_ASSERT (pump_priv); LOCK (&pump_priv->resume_path_lock); { @@ -231,7 +231,7 @@ pump_save_path (xlator_t *this, const char *path) priv = this->private; pump_priv = priv->pump_private; - assert (priv->root_inode); + GF_ASSERT (priv->root_inode); build_root_loc (priv->root_inode, &loc); @@ -424,7 +424,7 @@ gf_pump_traverse_directory (loc_t *loc) this = THIS; priv = this->private; - assert (loc->inode); + GF_ASSERT (loc->inode); fd = fd_create (loc->inode, PUMP_PID); if (!fd) { @@ -587,7 +587,7 @@ pump_complete_migration (xlator_t *this) priv = this->private; pump_priv = priv->pump_private; - assert (priv->root_inode); + GF_ASSERT (priv->root_inode); build_root_loc (priv->root_inode, &loc); @@ -683,7 +683,7 @@ pump_task (void *data) this = THIS; priv = this->private; - assert (priv->root_inode); + GF_ASSERT (priv->root_inode); build_root_loc (priv->root_inode, &loc); xattr_req = dict_new (); |