diff options
| author | Anuradha Talur <atalur@redhat.com> | 2016-04-21 17:20:09 +0530 | 
|---|---|---|
| committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2016-04-25 23:47:28 -0700 | 
| commit | 9996f95b28b3782887b7c233cdc0ba686c38b245 (patch) | |
| tree | 5fa681f25b95dd9aeec88f3bf86adbc98bd2c1d3 /libglusterfs/src/defaults.h | |
| parent | 2dc22adbf3361bdab10924943371492cc2817d8a (diff) | |
performance/decompounder: Introducing decompounder xlator
This xlator decompounds the compound fops received,
and executes them serially.
Change-Id: Ieddcec3c2983dd9ca7919ba9d7ecaa5192a5f489
BUG: 1303829
Signed-off-by: Anuradha Talur <atalur@redhat.com>
Reviewed-on: http://review.gluster.org/13577
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'libglusterfs/src/defaults.h')
| -rw-r--r-- | libglusterfs/src/defaults.h | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/libglusterfs/src/defaults.h b/libglusterfs/src/defaults.h index 148dc84b1c5..cae69a536a3 100644 --- a/libglusterfs/src/defaults.h +++ b/libglusterfs/src/defaults.h @@ -78,6 +78,22 @@ typedef struct {          struct gf_lease lease;  } default_args_t; +typedef struct { +        int             fop_enum; +        int             fop_length; +        int             *enum_list; +        default_args_t  *req_list; +        dict_t          *xdata; +} compound_args_t; + +typedef struct { +        int                fop_enum; +        int                fop_length; +        int                *enum_list; +        default_args_cbk_t *rsp_list; +        dict_t             *xdata; +} compound_args_cbk_t; +  int32_t default_notify (xlator_t *this,                          int32_t event,                          void *data,  | 
