summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-sm.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-sm.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-sm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-sm.c b/xlators/mgmt/glusterd/src/glusterd-sm.c
index 1ac3f902bf3..30281040ca9 100644
--- a/xlators/mgmt/glusterd/src/glusterd-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-sm.c
@@ -42,6 +42,7 @@
#include "statedump.h"
#include "glusterd-sm.h"
#include "glusterd-utils.h"
+#include "glusterd-store.h"
static struct list_head gd_friend_sm_queue;
@@ -539,7 +540,7 @@ glusterd_friend_sm ()
GD_FRIEND_EVENT_RCVD_FRIEND_REQ == event_type)) {
ret = glusterd_friend_add (NULL, port,
GD_FRIEND_STATE_DEFAULT,
- NULL, NULL, &peerinfo);
+ NULL, NULL, &peerinfo, 0);
if (ret) {
gf_log ("glusterd", GF_LOG_ERROR, "Unable to add peer, "
@@ -578,6 +579,8 @@ glusterd_friend_sm ()
goto out;
}
+ ret = glusterd_store_update_peerinfo (peerinfo);
+
GF_FREE (event);
}
}