Commit 1e1802d9 authored by Shane Snyder's avatar Shane Snyder

barebones rados_create/rados_shutdown calls

parent 327fc466
......@@ -4,6 +4,11 @@
* See COPYRIGHT in top-level directory.
*/
#include "mobject-conf.h"
#include <stdio.h>
#include <assert.h>
#include <margo.h>
#include <ssg.h>
......@@ -25,7 +30,10 @@ int rados_create(rados_t *cluster, const char * const id)
return(-1); /* TODO: error codes */
cluster_handle->test = 123;
/* XXX find the SSG group ID for the mobject cluster group */
/* TODO find the SSG group ID for the mobject cluster group */
/* set the returned cluster handle */
*cluster = cluster_handle;
return(0);
}
......@@ -33,14 +41,20 @@ int rados_create(rados_t *cluster, const char * const id)
#if 0
int mobject_store_connect(mobject_store_t cluster)
{
/* XXX ssg attach to mobject cluster group id */
/* TODO ssg attach to mobject cluster group id */
}
#endif
void rados_shutdown(rados_t cluster)
{
/* XXX ssg detatch from mobject cluster group id */
struct mobject_store_handle *cluster_handle =
(struct mobject_store_handle *)cluster;
assert(cluster_handle != NULL);
/* TODO ssg detatch from mobject cluster group id */
free(cluster_handle);
/* XXX free handle */
return;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment