Skip to content

Commit

Permalink
Add support for rlm_sql_cassandra
Browse files Browse the repository at this point in the history
Original author Linnaea Von Lavia

Code here:
https://gist.github.com/linnaea/ef2457ae6fc6db7c2e04

This version has a few fixes:

It removes the dependency on GCC atomic macros, and moves the log buffers into per connection structs.

Addresses the case where the global cleanup function 'cass_log_cleanup' could be called multiple times.

Adds an implementation of sql_fields (so cassandra can work with maps).

Adds a configure script (so the build won't fail if libcassandra is not available).

Makes failing to retrieve a column value, an error instead of a warning.

Removes many chatty log messages.

Makes the code compatible with v3.1.x.

Fixes inconsistent formatting.
  • Loading branch information
arr2036 committed Jun 12, 2015
1 parent a966bc0 commit 1109c7a
Show file tree
Hide file tree
Showing 5 changed files with 4,896 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/rlm_sql/drivers/rlm_sql_cassandra/.gitignore
@@ -0,0 +1 @@
all.mk
11 changes: 11 additions & 0 deletions src/modules/rlm_sql/drivers/rlm_sql_cassandra/all.mk.in
@@ -0,0 +1,11 @@
TARGETNAME := @targetname@

ifneq "$(TARGETNAME)" ""
TARGET := $(TARGETNAME).a
endif

SOURCES := $(TARGETNAME).c

SRC_CFLAGS := @mod_cflags@
SRC_CFLAGS += -I${top_srcdir}/src/modules/rlm_sql
TGT_LDLIBS := @mod_ldflags@

0 comments on commit 1109c7a

Please sign in to comment.