Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mobject-store
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
mobject-store
Commits
1e1802d9
Commit
1e1802d9
authored
Oct 16, 2017
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
barebones rados_create/rados_shutdown calls
parent
327fc466
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
src/libmobject-store.c
src/libmobject-store.c
+18
-4
No files found.
src/libmobject-store.c
View file @
1e1802d9
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment