summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-store.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index b5de958f8be..e04a3d493d9 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -3354,7 +3354,12 @@ _store_global_opts(dict_t *this, char *key, data_t *value, void *data)
{
gf_store_handle_t *shandle = data;
- gf_store_save_value(shandle->fd, key, (char *)value->data);
+ if (gf_store_save_value(shandle->fd, key, (char *)value->data)) {
+ gf_msg(THIS->name, GF_LOG_ERROR, 0, GD_MSG_STORE_HANDLE_WRITE_FAIL,
+ "Unable to write into store handle for key : %s, value %s", key,
+ (char *)value->data);
+ }
+
return 0;
}