diff options
author | schaffung <ssivakum@redhat.com> | 2021-01-18 10:29:42 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 10:29:42 +0530 |
commit | 3813ffafb12d20d2b728d43b3f0eb5201e6fb7c2 (patch) | |
tree | f44264ab5b43f3872c04c21d7b6b2388e085bcb0 /libglusterfs | |
parent | bc38c4ccf2d00225313d531ba1059e9d9ae59b83 (diff) | |
download | glusterfs-3813ffafb12d20d2b728d43b3f0eb5201e6fb7c2.tar.gz glusterfs-3813ffafb12d20d2b728d43b3f0eb5201e6fb7c2.tar.xz glusterfs-3813ffafb12d20d2b728d43b3f0eb5201e6fb7c2.zip |
glusterd: Removing redundant NULL checks for this and other cleanups. (#1735)
* glusterd: Removing redundant NULL checks for this
Issue: It has been noticed that the NULL checks performed
on `this` are actually being done on `THIS` as `this` is
derived from `THIS`. If the `THIS` had been NULL, the
crash would have happened before itself.
Fix: Basically removing the validations and assertion
functions which check if `this` is NULL.
Fixes: #1596
Signed-off-by: srijan-sivakumar <ssivakum@redhat.com>
* Made changes wrt review comments received.
Fixes: #1596
Signed-off-by: srijan-sivakumar <ssivakumar@redhat.com>
* glusterd: The efficient usage of `THIS` and `this`.
This commit addresses the review comments and tries to
change code in more places wherein the `THIS` and `this` can
be handled efficiently.
Signed-off-by: srijan-sivakumar <ssivakumar@redhat.com>
* Updated commit to address review comments.
Updates: #1596
Signed-off-by: srijan-sivakumar <ssivakumar@redhat.com>
* Addressing Review comments.
Updates: #1596
Signed-off-by: srijan-sivakumar <ssivakumar@redhat.com>
* Made changes after regression failure.
Updates: #1596
Signed-off-by: srijan-sivakumar <ssivakumar@redhat.com>
* One has to be careful while working with c
Instead of a `||` operation, the cleanup left out
with `|`. Does the compiler ceck for these things?
Updates: #1596
Signed-off-by: srijan-sivakumar <ssivakumar@redhat.com>
* Fixing clang-format issues.
Change-Id: I68c52249af66080f59f57e558901f2654bd43cd8
Updates: #1596
Signed-off-by: srijan-sivakumar <ssivakumar@redhat.com>
Co-authored-by: srijan-sivakumar <ssivakumar@redhat.com>
Diffstat (limited to 'libglusterfs')
0 files changed, 0 insertions, 0 deletions