diff options
author | Zhou Zhengping <johnzzpcrystal@gmail.com> | 2017-04-28 06:12:56 +0800 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-05-08 13:15:12 +0000 |
commit | 68b4db2ac37af3283580b74eef5d405c9370b0c0 (patch) | |
tree | a8623066d34e99f3b4fae1d8807401454b7cc286 /xlators/debug/error-gen/src/error-gen.h | |
parent | 5b8e9261f1e8aab1a3475578d56d54037459a5e6 (diff) |
debug/error-gen: Don't need to convert error string to int in every fop
Every fop in xlator error-gen will call function error_gen,
which will call function conv_error to convert pvt->error_no to int.
But actually the function could only be called in init and reconfigure
Change-Id: I96c9780574f369fc58eed10fea9d50c4cd7d4e8a
BUG: 1446412
Signed-off-by: Zhou Zhengping <johnzzpcrystal@gmail.com>
Reviewed-on: https://review.gluster.org/17132
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Diffstat (limited to 'xlators/debug/error-gen/src/error-gen.h')
-rw-r--r-- | xlators/debug/error-gen/src/error-gen.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/debug/error-gen/src/error-gen.h b/xlators/debug/error-gen/src/error-gen.h index 351f5dc99d6..6ef6b232e6a 100644 --- a/xlators/debug/error-gen/src/error-gen.h +++ b/xlators/debug/error-gen/src/error-gen.h @@ -31,6 +31,7 @@ typedef struct { int op_count; int failure_iter_no; char *error_no; + int error_no_int; gf_boolean_t random_failure; gf_lock_t lock; } eg_t; |