summaryrefslogtreecommitdiffstats
path: root/xlators/nfs
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-08-19 08:08:23 +0300
committerAmar Tumballi <amarts@redhat.com>2018-09-04 05:32:10 +0000
commit8b913eb752be422a362329d02dfb5c76754ad151 (patch)
tree16db9121e6f931630f1bf99fb1ef0aeb9ef4d33f /xlators/nfs
parent5276e8f27e3021d5da3d3055caed6f9a1d964c93 (diff)
{dht-rebalance|glusterd-geo-rep|glusterd-utils|nfs|bd}.c: no dict_del before dict_set
There is no need to remove an item before re-setting it. Compile-tested only! Change-Id: I2869aec9ebf474859127b8b38d284246e6097e84 updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'xlators/nfs')
-rw-r--r--xlators/nfs/server/src/nfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c
index 6a4415d5b8b..7f741695fb5 100644
--- a/xlators/nfs/server/src/nfs.c
+++ b/xlators/nfs/server/src/nfs.c
@@ -1082,7 +1082,6 @@ nfs_init_state (xlator_t *this)
if (nfs->allow_insecure) {
/* blindly set both the options */
- dict_del (this->options, "rpc-auth-allow-insecure");
ret = dict_set_str (this->options,
"rpc-auth-allow-insecure", "on");
if (ret == -1) {
@@ -1090,7 +1089,6 @@ nfs_init_state (xlator_t *this)
NFS_MSG_DICT_SET_FAILED, "dict_set_str error");
goto free_foppool;
}
- dict_del (this->options, "rpc-auth.ports.insecure");
ret = dict_set_str (this->options,
"rpc-auth.ports.insecure", "on");
if (ret == -1) {