summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-store.h
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2011-02-21 04:02:24 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-02-22 02:11:47 -0800
commit595e0df48bf387a87eb62a76d437a7ea79a0bc8a (patch)
tree990c49a0e82043f53b0c3744b5fa3281c987e92a /xlators/mgmt/glusterd/src/glusterd-store.h
parentb00b3d46c226d339a1cfde70ceab101cee2ac865 (diff)
mgmt/glusterd: In store-retrieve exit with error message instead of crashing.
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2066 (glusterd crashed while trying to restore volumes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2066
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-store.h')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.h b/xlators/mgmt/glusterd/src/glusterd-store.h
index 65021144018..472a6ef4ffe 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);