features/changelog: Always log directory rename operations

Directory renames are being ignored as special renames. Special
renames can happen only on files. Hence always log directory
rename operations in changelog.

Change-Id: I4fbdb3e02e634a39a8846fb2f7a4c6cc2ba74400
BUG: 1234286
Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Reviewed-on: http://review.gluster.org/11356
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
This commit is contained in:
Vijay Bellur 2015-06-22 19:01:39 -04:00 committed by Venky Shankar
parent b15ba49546
commit aee44fccd4

@ -376,7 +376,9 @@ changelog_rename (call_frame_t *frame, xlator_t *this,
CHANGELOG_NOT_ACTIVE_THEN_GOTO (frame, priv, wind);
ret = dict_get_bin (xdata, DHT_CHANGELOG_RENAME_OP_KEY, (void **)&info);
if (ret) { /* xdata "NOT" set, Special rename => avoid logging */
if (ret && oldloc->inode->ia_type != IA_IFDIR) {
/* xdata "NOT" set for a non-directory,
* Special rename => avoid logging */
goto wind;
}