mobject-connect-test.c 501 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*
 * (C) 2017 The University of Chicago
 * 
 * See COPYRIGHT in top-level directory.
 */

#include "mobject-store-config.h"

#include <stdio.h>
#include <assert.h>

12
#ifdef USE_RADOS
13
#include <rados/librados.h>
14
#else
15
#include <librados-mobject-store.h>
16 17 18 19 20 21 22 23 24 25
#endif

int main(int argc, char *argv[])
{
    rados_t cluster;
    int ret;

    ret = rados_create(&cluster, "admin");
    assert(ret == 0);

26 27 28
    ret = rados_connect(cluster);
    assert(ret == 0);

29 30 31 32
    rados_shutdown(cluster);

    return(0);
}