diff options
author | Humble Chirammal <hchiramm@redhat.com> | 2014-07-09 01:22:54 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2014-07-15 04:39:38 -0700 |
commit | c74ff569ca40c7484c197d23ec342f8445c09b9c (patch) | |
tree | af788b4964499ae0f7fcd18dbdc3f14492feeb33 /xlators/features | |
parent | 78128afce1b6476b3f23e4ca74d654934ac1ca2f (diff) |
compress: Change variable name
'writen' and 'total_writen' variables has been defined in compress
xlator. This patch replaced those with proper name.
Change-Id: If8e38fae8f997a92686a891d64cbaf6b0b69129a
BUG: 1075417
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
Reviewed-on: http://review.gluster.org/8268
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Tested-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/compress/src/cdc-helper.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xlators/features/compress/src/cdc-helper.c b/xlators/features/compress/src/cdc-helper.c index 54432ff455c..79d60a4924b 100644 --- a/xlators/features/compress/src/cdc-helper.c +++ b/xlators/features/compress/src/cdc-helper.c @@ -161,8 +161,8 @@ cdc_dump_iovec_to_disk (xlator_t *this, cdc_info_t *ci, const char *file) { int i = 0; int fd = 0; - size_t writen = 0; - size_t total_writen = 0; + size_t written = 0; + size_t total_written = 0; fd = open (file, O_WRONLY|O_CREAT|O_TRUNC, 0777 ); if (fd < 0) { @@ -171,15 +171,15 @@ cdc_dump_iovec_to_disk (xlator_t *this, cdc_info_t *ci, const char *file) return; } - writen = write (fd, (char *) gzip_header, 10); - total_writen += writen; + written = write (fd, (char *) gzip_header, 10); + total_written += written; for (i = 0; i < ci->ncount; i++) { - writen = write (fd, (char *) ci->vec[i].iov_base, ci->vec[i].iov_len); - total_writen += writen; + written = write (fd, (char *) ci->vec[i].iov_base, ci->vec[i].iov_len); + total_written += written; } gf_log (this->name, GF_LOG_DEBUG, - "dump'd %zu bytes to %s", total_writen, GF_CDC_DEBUG_DUMP_FILE ); + "dump'd %zu bytes to %s", total_written, GF_CDC_DEBUG_DUMP_FILE ); close (fd); } @@ -502,7 +502,7 @@ cdc_decompress (xlator_t *this, cdc_priv_t *priv, cdc_info_t *ci, goto passthrough_out; /* do we need to do this? can we assume that one iovec - * will hold per request data everytime? + * will hold per request data every time? * * server/client protocol seems to deal with a single * iovec even if op_ret > 1M. So, it looks ok to |