Commit 011be021 authored by Matthieu Dorier's avatar Matthieu Dorier

Merge branch 'master' of xgitlab.cels.anl.gov:sds/mobject-store

parents 50b8c379 190ab68c
......@@ -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
......@@ -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
......
......@@ -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_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. 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
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
......@@ -12,7 +12,6 @@
#ifdef USE_LIBRADOS
#include <librados.h>
#else
#include <libmobject-store.h>
#include <librados-mobject-store.h>
#endif
......
/* 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();
}
#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);
}
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