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
011be021
Commit
011be021
authored
Oct 17, 2017
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of xgitlab.cels.anl.gov:sds/mobject-store
parents
50b8c379
190ab68c
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
59 additions
and
68 deletions
+59
-68
.gitignore
.gitignore
+2
-1
Makefile.am
Makefile.am
+6
-1
include/librados-mobject-store.h
include/librados-mobject-store.h
+2
-0
src/Makefile.subdir
src/Makefile.subdir
+5
-1
src/mobject-store-config.h.in
src/mobject-store-config.h.in
+0
-62
tests/Makefile.subdir
tests/Makefile.subdir
+4
-2
tests/mobject-connect-test.c
tests/mobject-connect-test.c
+0
-1
tests/mobject-server.c
tests/mobject-server.c
+7
-0
tests/test-sds-keyval-client.c
tests/test-sds-keyval-client.c
+33
-0
No files found.
.gitignore
View file @
011be021
...
...
@@ -10,8 +10,9 @@ config.sub
configure
depcomp
include/mobject-conf.h.in
src/mobject-store-config.h.in
*~
install-sh
ltmain.sh
missing
test-driver
Makefile.am
View file @
011be021
...
...
@@ -11,7 +11,12 @@ AM_CXXFLAGS = $(AM_CFLAGS)
lib_LTLIBRARIES
=
src/libmobject-store.la
include_HEADERS
=
include/libmobject-store.h
include_HEADERS
=
include/libmobject-store.h
\
include/librados-mobject-store.h
# setting this to empty so subdir makefiles can use +=
noinst_HEADERS
=
src_libmobject_la_CPPFLAGS
=
-I
${srcdir}
/include
-I
${srcdir}
/src
include
Make.rules
...
...
include/librados-mobject-store.h
View file @
011be021
...
...
@@ -11,6 +11,8 @@
extern
"C"
{
#endif
#include "libmobject-store.h"
typedef
mobject_store_t
rados_t
;
#define LIBRADOS_OPERATION_NOFLAG LIBMOBJECT_OPERATION_NOFLAG
...
...
src/Makefile.subdir
View file @
011be021
src_libmobject_store_la_SOURCES
=
\
src/libmobject-store.c
\
src/completion.c
\
src/log.h src/write-op.c
src/write-op.c
noinst_HEADERS
+=
src/log.h src/completion.h
\
src/write-op.h src/write-actions.h
\
src/utlist.h
src/mobject-store-config.h.in
deleted
100644 → 0
View file @
50b8c379
/* src/mobject-store-config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#undef LT_OBJDIR
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
tests/Makefile.subdir
View file @
011be021
check_PROGRAMS
+=
\
tests/mobject-connect-test
TESTS
+=
\
tests/connect-test.sh
#
TESTS += \
#
tests/connect-test.sh
tests_mobject_connect_test_SOURCES
=
\
tests/mobject-connect-test.c
tests_mobject_connect_test_LDADD
=
\
src/libmobject-store.la
tests_mobject_connect_test_CPPFLAGS
=
-I
${srcdir}
/include
tests/mobject-connect-test.c
View file @
011be021
...
...
@@ -12,7 +12,6 @@
#ifdef USE_LIBRADOS
#include <librados.h>
#else
#include <libmobject-store.h>
#include <librados-mobject-store.h>
#endif
...
...
tests/mobject-server.c
0 → 100644
View file @
011be021
/* the SDS-keyval and bake-bulk tests should still work, even if there is a higher-level protocol */
int
main
(
int
argc
,
char
**
argv
)
{
mobject_server_register
(
argc
,
argv
);
margo_wait_for_finalize
();
margo_server_deregister
();
}
tests/test-sds-keyval-client.c
0 → 100644
View file @
011be021
#include "sds-keyval.h"
#include <assert.h>
int
main
(
int
argc
,
char
**
argv
)
{
int
ret
;
kv_context
*
context
=
kv_client_register
(
argc
,
argv
);
/* open */
ret
=
kv_open
(
context
,
argv
[
1
],
"booger"
,
KV_INT
,
KV_INT
);
/* put */
int
key
=
10
;
int
val
=
10
;
ret
=
kv_put
(
context
,
&
key
,
&
val
);
/* get */
int
remote_val
;
ret
=
kv_get
(
context
,
&
key
,
&
remote_val
);
printf
(
"key: %d in: %d out: %d
\n
"
,
key
,
val
,
remote_val
);
/* close */
ret
=
kv_close
(
context
);
/* benchmark doesn't require an open keyval */
bench_result
*
output
;
output
=
kv_benchmark
(
context
,
1000
);
printf
(
"insert: %zd keys in %f seconds: %f Million-insert per sec
\n
"
,
output
->
nkeys
,
output
->
insert_time
,
output
->
nkeys
/
(
output
->
insert_time
*
1024
*
1024
)
);
free
(
output
);
// kv_client_deregister(context);
}
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