diff options
author | ajha <ajha@redhat.com> | 2013-08-30 15:14:46 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-09-29 17:00:47 -0700 |
commit | 8bd16cc88527584e91baa8773b4f01e7c44708c1 (patch) | |
tree | d88ae89588da2218f38b959670d6957e969bc46d /xlators/features/changelog/src/changelog-encoders.h | |
parent | 124d93ed3ea826cd16e4766f82b3c48af19cba5c (diff) |
features/changelog : Improvement in changelog "encoding-change".
change in encoding method of changelog was critical section for
"fop dispatch thread", "roll-over thread" and "reconfigure dispatch thread".
In this patch the "encoding-method" is changed by the reconfigure dispatch thread
lazily during handle_change, which solves the concurrency among the racing
threads.
BUG: 1002940
Change-Id: I78c3e8887efa46d0fcc60755cdf4243031cfa3eb
Signed-off-by: Ajeet Jha <ajha@redhat.com>
Reviewed-on: http://review.gluster.org/5844
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Harshavardhana <harsha@harshavardhana.net>
Diffstat (limited to 'xlators/features/changelog/src/changelog-encoders.h')
-rw-r--r-- | xlators/features/changelog/src/changelog-encoders.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/features/changelog/src/changelog-encoders.h b/xlators/features/changelog/src/changelog-encoders.h index 43deb1307..a3efbee05 100644 --- a/xlators/features/changelog/src/changelog-encoders.h +++ b/xlators/features/changelog/src/changelog-encoders.h @@ -40,5 +40,7 @@ int changelog_encode_binary (xlator_t *, changelog_log_data_t *); int changelog_encode_ascii (xlator_t *, changelog_log_data_t *); +void +changelog_encode_change(changelog_priv_t *); #endif /* _CHANGELOG_ENCODERS_H */ |