mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
Loading...
Searching...
No Matches
store_rados.h File Reference
#include "store.h"

Go to the source code of this file.

Functions

struct storage_backend * init_storage_rados (const char *connection_string)
 Allocate and initialize a Ceph RADOS metatile storage_backend.

Function Documentation

◆ init_storage_rados()

struct storage_backend * init_storage_rados ( const char * connection_string)

Allocate and initialize a Ceph RADOS metatile storage_backend.

Parses connection_string of the form "rados://<pool>/<path/to/ceph.conf>", creates a rados_t cluster handle, loads the Ceph configuration file, connects to the cluster (serialized via rados_mutex), opens an I/O context to <pool>, allocates the single-entry metadata_cache buffer, and wires all backend operation function pointers. Returns NULL if compiled without HAVE_LIBRADOS or if any initialization step fails.

Parameters
connection_stringBackend URI of the form "rados://<pool>/<ceph_conf_path>".
Returns
Newly allocated struct storage_backend pointer, or NULL on failure or if unsupported.