[PATCH] rasqlinsert is creating the record field even when -M norec is supplied
Terry Burton
tez at terryburton.co.uk
Fri Sep 6 08:35:38 EDT 2013
Hi Carter,
The latest rasqlinsert attempts to create tables with the record field
even when -M norec is specified.
Invoking as:
rasqlinsert -S ... -s saddr,pkts,bytes,trans,proto,dport,srcid -M
mysql_engine=MEMORY -M norec -M drop -m saddr proto dport srcid -w
mysql://...
This is a problem for me as I'm using MEMORY tables for real-time
statistics gathering which do not support the BLOB data type.
Looks like setting of ArgusSOptionRecord this was omitted from the
option parser when the ramysql clients were re-factored:
--- a/raclient.c
+++ b/raclient.c
@@ -712,6 +712,9 @@
parser->ArgusAggregator->correct = NULL;
}
} else
+ if (!(strncasecmp (mode->mode, "norec", 5))) {
+ ArgusSOptionRecord = 0;
+ } else
if (!(strncasecmp (mode->mode, "nomerge", 7))) {
parser->RaCumulativeMerge = 0;
} else
All the best,
Terry
More information about the argus
mailing list