path: root/src/binlogcat.c
AgeCommit message (Collapse)AuthorFiles
2014-11-01Update copyright yearsSergey Poznyakoff1
2013-10-17binlogsel: add loadable module supportSergey Poznyakoff1
* (SUBDIRS): Add libltdl * Configure ltdl * src/ (binlogsel_LDADD): Add LIBLTDL. (binlogsel_CPPFLAGS): New variable. * src/binlogcat.c (catlog): Bugfix. * src/binlogsel.c: Allow for multiple intervals. Support loadable modules. * doc/binlogcat.1: Update. * doc/binlogsel.1: Update. * doc/vmod-binlog.3: Update.
2013-10-15Minor changeSergey Poznyakoff1
Use 'format' instead of 'dataspec'
2013-10-15Fix compiler warnings.Sergey Poznyakoff1
2013-10-15Add version and help output to command line utilities.Sergey Poznyakoff1
2013-10-14New utility binlogselSergey Poznyakoff1
* Check for yacc. * src/.gitignore: Update. * src/ (libbinlog_a_SOURCES): Add new files. Build binlogsel. * src/binlogcat.c: Use xmalloc. * src/binlogsel.c: New file. * src/parse-datetime.h: New file. * src/parse-datetime.y: New file. * src/xalloc.c: New file. * src/xalloc.h: New file.
2013-10-13Fix error checking, add pack tests.Sergey Poznyakoff1
* src/binlog.c (vmod_init): Fix error checking after packcomp. * src/binlogcat.c (catlog): Likewise. * tests/binpack.c (main): Likewise. * src/pack.c (Z_unpacker): Fix output format. (packcomp): allow for whitespace between specifiers. On error set errno and return NULL. * tests/ Add * tests/ Likewise. * tests/ New file. * tests/ Fix name pattern.
2013-10-13* src/ New convenience library libbinlog.aSergey Poznyakoff1
* src/binlogcat.c: Use functions from libbinlog.a * src/err.h: New file. * src/err.c: New file. * tests/.gitignore: Add binpack.c * tests/ Build binpack.c * tests/binpack.c: New file.
2013-10-13Improve error reporting.Sergey Poznyakoff1
* src/pack.c: Use packerror to report errors. * src/pack.h (packerror): New proto. * src/binlog.c (packerror): New function. * src/binlogcat.c (packerror,error,verror): New functions.
2013-10-12BugfixSergey Poznyakoff1
* src/binlogcat.c: Fix help output.
2013-10-12Rewrite using opaque record data.Sergey Poznyakoff1
Records can carry arbitrary data, whose format is defined using teplate strings similar to those of Perl's pack() function. The teplate string is stored in the logfile header and is used by binlogcat to render a human-readable representation. * src/.gitignore: New file. * pack.c: New file. * pack.h: New file. * src/ Add pack.c, pack.h * src/binlog.c: Rewrite. Use pack routines to construct each record. * src/binlogcat.c: Likewise. Use packout to unpack each record. * src/vmod-binlog.h (struct binlog_record): Remove nid,aid. (struct binlog_file_header): Add hdrsize. (BINLOG_HEADER_SIZE,union binlog_header): Remove (binlog_recnum): Remove. (binlog_size): Rewrite. * src/vmod.vcc (append,sappend): Remove. (init): Change signature. (start,commit,pack): New functions. * tests/ Rewrite. * tests/ Rewrite.
2013-10-11Add testsuite.Sergey Poznyakoff1
2013-10-11Initial commitSergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.