diff options
author | Amar Tumballi <amarts@redhat.com> | 2018-10-12 22:23:17 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-10-29 08:56:46 +0000 |
commit | 0f817c7795f115fb67b0973ce0965bcd3de8d196 (patch) | |
tree | d475c5b66fac954e4ad3524924b7cea838362409 /libglusterfs | |
parent | ff18121945bff394f3234e9f1a9d61ac97d4d493 (diff) |
server-protocol: set the frame type to TYPE_FOP
This will allow proper printing of exact 'fop' type to be logged in
string, not number, during backtraces.
Considering this was not done on brick processes, we have no easy
way to glance and understand which fops were pending.
What gets changed:
After a crash, most of the core-dumps logged were of the form:
```
pending frames:
frame : type(0) op(18)
frame : type(0) op(18)
frame : type(0) op(28)
```
would change to
```
pending frames:
frame : type(1) op(SETXATTR)
frame : type(1) op(SETXATTR)
frame : type(1) op(READDIR)
```
updates: bz#1639599
Change-Id: I0e3d2a8dee9cfde7ed0112a948f5213f546efb80
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/syncop.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/syncop.h b/libglusterfs/src/syncop.h index d07aed3d53b..cea52429f6f 100644 --- a/libglusterfs/src/syncop.h +++ b/libglusterfs/src/syncop.h @@ -331,6 +331,7 @@ syncop_create_frame(xlator_t *this) if (!frame) return NULL; + frame->root->type = GF_OP_TYPE_FOP; opctx = syncopctx_getctx(); if (opctx && (opctx->valid & SYNCOPCTX_PID)) |