path: root/src/binlogsel.c
AgeCommit message (Collapse)AuthorFiles
2014-06-01Bugfixes in binlogselSergey Poznyakoff1
* src/binlogsel.c (selmem): Fix operation in case when all records are earlier than start_time. (read_status_fp): Set start_time 1 second later than the status file time. Set last_ts.
2014-06-01Fix -d (timediff) option in binlogsel.Sergey Poznyakoff1
* src/binlogsel.c (selmem): Don't attempt to modify rec.
2014-06-01Bugfixes.Sergey Poznyakoff1
* src/binlogsel.c (mkfilename): Return a copy of file name if dir is NULL. (main): Directory (-D) defaults to cwd.
2014-05-30binlogsel: dry-run and incremental mode.Sergey Poznyakoff1
* src/binlogsel.c (last_ts): New variable. (module_init): Change signature (incompatible change!) (interval) <descr>: New member. (interval_count): New variable. (interval_add): Take descr as argument. Fill in interval->descr. (interval_add): Increment interval_count. (interval_add_str): Construct descr. (selmem): Update last_ts (selidx_day,selidx_month,selidx_year): Silently ignore non-existing directories. Don't bail out if no matching file was found. (selidx_year): Clear the START_TIME flag after the first iteration. (read_status_fp,read_status_file) (write_status_file): New functions. (main): New option -n. Use interval_add_str to parse intervals. Pass flags to module_init. Process status file, if requested.
2014-05-29Further thread-safety fixes.Sergey Poznyakoff1
* NEWS: Version 1.0.90 * Likewise. * src/binlog.c (binlog_env) <inst_head>: New member. (binlog_env_init): Initialize inst_head and use it instead of conf->inst_head. (env_free): Free inst_head. * src/pack.c (packdup): New function. * src/pack.h (packdup): New proto.
2014-05-29Use per-thread environment for packet construction.Sergey Poznyakoff1
* src/binlog.c (binlog_config) <inst_cur> <env,state,timestamp>: Remove. (binlog_env): New struct. (thread_once.thread_key): New statics. (binlog_env_get,binlog_env_init): New functions. (vmod_init): Don't create env here. Register make_key. (vmod_start): Use binlog_env (vmod_pack): Likewise. (vmod_commit): Likewise. * src/binlogsel.c (interval_add): Update timemask if START_TIME or STOP_TIME are set on tmask.
2013-11-07Fix interval initialization from the module_init function.Sergey Poznyakoff1
* doc/vmod-binlog.3: Update. * src/binlogsel.c (interval) <name>: Remove const. (interval_add): duplicate the name. * src/xalloc.c (xstrdup): New function. * src/xalloc.h: Likewise.
2013-10-19Version 1.0release-1.0Sergey 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-17Add multiple interval support to binlogsel.Sergey Poznyakoff1
* src/binlogsel.c (FROM_TIME,TO_TIME): Rename to START_TIME, STOP_TIME. (from_time,to_time): Rename to start_time,to_time. (CLEAR_START_TIME,CLEAR_STOP_TIME): New macros. (interval): New struct. (interval_head, interval_tail): New variables. (interval_add): New function. (selmem): Iterate over available intervals and output records for those that match the time limits. (main): New option -I. Build interval list from multiple -I,-F,-T options.
2013-10-16Minor change.Sergey Poznyakoff1
* src/binlogsel.c (main): Fix argument consistency check.
2013-10-16Add manpages.Sergey Poznyakoff1
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-15Change default log naming.Sergey Poznyakoff1
* Call AM_PROG_CC_C_O * src/binlog.c (BLF_TRUNCATE): New flag. (vmod_init): Change pattern initialization. New parameter "reuselog". (createfile): Remove O_TRUNC. (checkheader): New function. (newfile): Reuse existing file, if it is the first file to be opened after varnish startup and its header matches exactly our data. * src/binlogsel.c: Use indexed directory structure to speed up searches. * src/vmod-binlog.h (BINLOG_PATTERN): Change pattern. (BINLOG_GLOB_PATTERN,BINLOG_INDEX): New defines.
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.

Return to:

Send suggestions and report system problems to the System administrator.