summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/features/bit-rot/src/stub/bit-rot-stub.c14
-rw-r--r--xlators/features/changelog/src/changelog.c1
2 files changed, 10 insertions, 5 deletions
diff --git a/xlators/features/bit-rot/src/stub/bit-rot-stub.c b/xlators/features/bit-rot/src/stub/bit-rot-stub.c
index 0db500659b5..f9c3886948a 100644
--- a/xlators/features/bit-rot/src/stub/bit-rot-stub.c
+++ b/xlators/features/bit-rot/src/stub/bit-rot-stub.c
@@ -407,10 +407,15 @@ br_stub_fd_versioning (xlator_t *this, call_frame_t *frame,
dict_t *xdata = NULL;
br_stub_local_t *local = NULL;
+ xdata = dict_new ();
+ if (!xdata)
+ goto done;
+
+ ret = dict_set_int32 (xdata, GLUSTERFS_INTERNAL_FOP_KEY, 1);
+ if (ret)
+ goto dealloc_xdata;
+
if (durable) {
- xdata = dict_new ();
- if (!xdata)
- goto done;
ret = dict_set_int32 (xdata, GLUSTERFS_DURABLE_OP, 0);
if (ret)
goto dealloc_xdata;
@@ -437,8 +442,7 @@ br_stub_fd_versioning (xlator_t *this, call_frame_t *frame,
ret = 0;
dealloc_xdata:
- if (durable)
- dict_unref (xdata);
+ dict_unref (xdata);
done:
return ret;
}
diff --git a/xlators/features/changelog/src/changelog.c b/xlators/features/changelog/src/changelog.c
index e6553c7f6bb..df8172765d7 100644
--- a/xlators/features/changelog/src/changelog.c
+++ b/xlators/features/changelog/src/changelog.c
@@ -1454,6 +1454,7 @@ changelog_fsetxattr (call_frame_t *frame,
priv = this->private;
CHANGELOG_NOT_ACTIVE_THEN_GOTO (frame, priv, wind);
+ CHANGELOG_IF_INTERNAL_FOP_THEN_GOTO (frame, xdata, wind);
CHANGELOG_OP_BOUNDARY_CHECK (frame, wind);