diff options
| author | Saravanakumar Arumugam <sarumuga@redhat.com> | 2015-04-29 17:33:43 +0530 |
|---|---|---|
| committer | Vijay Bellur <vbellur@redhat.com> | 2015-05-08 04:52:51 -0700 |
| commit | df919238505a74a9d89b308bbc6d01b797140439 (patch) | |
| tree | 1e9c0a06f75df8f22217670d9954f24392c5f936 /xlators/features/changelog/src/changelog-misc.h | |
| parent | 9c21c5a632ba22a6f46d037bd4fa4d825b24d07f (diff) | |
features/changelog: Avoid creation of empty changelogs
An empty changelog when rolled over gets unlinked and indexed with
a modified path-name in htime file. The modification is "changelog"
not "CHANGELOG" in basename of the empty changelog file.
Change-Id: I77fd0b48b5c33c245418f5ac7a9756f08ece24d9
BUG: 1208470
Signed-off-by: Ajeet Jha <ajha@redhat.com>
Signed-off-by: Saravanakumar Arumugam <sarumuga@redhat.com>
Reviewed-on: http://review.gluster.org/9572
Tested-by: NetBSD Build System
Reviewed-by: Aravinda VK <avishwan@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features/changelog/src/changelog-misc.h')
| -rw-r--r-- | xlators/features/changelog/src/changelog-misc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/changelog/src/changelog-misc.h b/xlators/features/changelog/src/changelog-misc.h index c0349ca3838..71c976f5010 100644 --- a/xlators/features/changelog/src/changelog-misc.h +++ b/xlators/features/changelog/src/changelog-misc.h @@ -73,7 +73,7 @@ fp = fdopen (fd_dup, "r"); \ if (fp) { \ if (fgets (buffer, len, fp)) { \ - elen = strlen (buffer); \ + enc_len = strlen (buffer); \ sscanf (buffer, \ CHANGELOG_HEADER, \ &maj, &min, &enc); \ |
