From 595e0df48bf387a87eb62a76d437a7ea79a0bc8a Mon Sep 17 00:00:00 2001 From: Pranith K Date: Mon, 21 Feb 2011 04:02:24 +0000 Subject: mgmt/glusterd: In store-retrieve exit with error message instead of crashing. Signed-off-by: Pranith Kumar K Signed-off-by: Anand V. Avati BUG: 2066 (glusterd crashed while trying to restore volumes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2066 --- xlators/mgmt/glusterd/src/glusterd-store.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-store.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-store.h b/xlators/mgmt/glusterd/src/glusterd-store.h index 650211440..472a6ef4f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.h +++ b/xlators/mgmt/glusterd/src/glusterd-store.h @@ -70,6 +70,15 @@ }\ } while (0); \ +typedef enum { + GD_STORE_SUCCESS, + GD_STORE_KEY_NULL, + GD_STORE_VALUE_NULL, + GD_STORE_KEY_VALUE_NULL, + GD_STORE_EOF, + GD_STORE_ENOMEM +} glusterd_store_op_errno_t; + int32_t glusterd_store_create_volume (glusterd_volinfo_t *volinfo); -- cgit