diff options
author | Amar Tumballi <amarts@redhat.com> | 2019-03-29 08:30:49 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-04-10 04:42:00 +0000 |
commit | 22e848f88e2cb9510e82fb4875c182240fff3303 (patch) | |
tree | 942279eb91eb3ba29727b0637b0878e6d197e89b /xlators/protocol/client/src/client.h | |
parent | 398b53adb281e459281f74a9f96a12ee48da7daa (diff) |
protocol: add an option to force using old-protocol
As protocol implements every fop, and in general a large part of
the codebase. Considering our regression is run mostly in 1 machine,
there was no way of forcing the client to use old protocol (while new
one is available). With this patch, a new 'testing' option is provided
which forces client to use old protocol if found.
This should help increase the code coverage by at least 10k lines overall.
updates: bz#1693692
Change-Id: Ie45256f7dea250671b689c72b4b6f25037cef948
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/protocol/client/src/client.h')
-rw-r--r-- | xlators/protocol/client/src/client.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/protocol/client/src/client.h b/xlators/protocol/client/src/client.h index f12fa61bb93..60efa9c264a 100644 --- a/xlators/protocol/client/src/client.h +++ b/xlators/protocol/client/src/client.h @@ -235,6 +235,8 @@ typedef struct clnt_conf { * up, disconnects can be * logged */ + + gf_boolean_t old_protocol; /* used only for old-protocol testing */ } clnt_conf_t; typedef struct _client_fd_ctx { |