summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-06-10 01:14:56 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-06-10 05:24:32 -0700
commit45cfee031062fe40899a6c4c9049d0267b7c7ee6 (patch)
treeef358d50af723df8735a45cb0c182f86ca664b72 /libglusterfs
parentd0b2695d773d3bbf162b367735c39d0e5bd7063a (diff)
changed the order of gf_log in xlator.c to prevent hang
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 329 (Replacing memory allocation functions with mem-type functions) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=329
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/xlator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c
index e9ace1714..94a53211a 100644
--- a/libglusterfs/src/xlator.c
+++ b/libglusterfs/src/xlator.c
@@ -940,9 +940,6 @@ xlator_mem_acct_init (xlator_t *xl, int num_types)
return -1;
}
- gf_log(xl->name, GF_LOG_DEBUG, "Allocated mem_acct_rec for %d types",
- num_types);
-
for (i = 0; i < num_types; i++) {
ret = LOCK_INIT(&(xl->mem_acct.rec[i].lock));
if (ret) {
@@ -950,6 +947,9 @@ xlator_mem_acct_init (xlator_t *xl, int num_types)
}
}
+ gf_log(xl->name, GF_LOG_DEBUG, "Allocated mem_acct_rec for %d types",
+ num_types);
+
return 0;
}