[cvs] / slony1-engine / src / slon / slon.c Repository:

Log of /slony1-engine/src/slon/slon.c

Parent Directory Parent Directory | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.66.2.8 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Aug 17 17:39:57 2009 UTC (4 years, 11 months ago) by devrim
Branch: REL_1_2_STABLE
CVS Tags: REL_1_2_18, REL_1_2_19, REL_1_2_20, REL_1_2_21, REL_1_2_21_RC1
Changes since 1.66.2.7: +2 -2 lines
Diff to previous 1.66.2.7 (colored) , to branch point 1.66 (colored) , to next main 1.80 (colored) , to selected 1.52 (colored)
Update Copyright year

Revision 1.80 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Aug 17 17:25:50 2009 UTC (4 years, 11 months ago) by devrim
Branch: MAIN
CVS Tags: HEAD
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored) , to selected 1.52 (colored)
Update Copyright year

Revision 1.79.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Aug 17 17:09:58 2009 UTC (4 years, 11 months ago) by devrim
Branch: REL_2_0_STABLE
CVS Tags: REL_2_0_3, REL_2_0_3_RC3, REL_2_0_3_RC4, REL_2_0_4, REL_2_0_4_RC1, REL_2_0_4_RC2
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored) , to next main 1.80 (colored) , to selected 1.52 (colored)
Update copyrights

Revision 1.79 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Nov 24 15:06:18 2008 UTC (5 years, 7 months ago) by cbbrowne
Branch: MAIN
CVS Tags: REL_2_0_0, REL_2_0_1, REL_2_0_2, REL_2_0_2_RC, REL_2_0_3_RC, REL_2_0_3_RC2
Branch point for: REL_2_0_STABLE
Changes since 1.78: +4 -2 lines
Diff to previous 1.78 (colored) , to selected 1.52 (colored)
Patch from Hiroshi Saito to resolve some Windows problems with 2.0

Revision 1.78 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Aug 1 19:49:39 2008 UTC (5 years, 11 months ago) by cbbrowne
Branch: MAIN
CVS Tags: REL_2_0_0_RC2
Changes since 1.77: +18 -18 lines
Diff to previous 1.77 (colored) , to selected 1.52 (colored)
a) Make slon_terminate_worker() visible so that remote_worker.c can
   reference it

b) Revise various logging that used SLON_DEBUG1 and SLON_DEBUG2 to
   instead log at SLON_INFO and SLON_CONFIG levels

Revision 1.77 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 3 15:47:21 2008 UTC (6 years, 6 months ago) by cbbrowne
Branch: MAIN
CVS Tags: REL_2_0_0_RC1
Changes since 1.76: +6 -1 lines
Diff to previous 1.76 (colored) , to selected 1.52 (colored)
Added dump_configuration() function that dumps (to Slony-I log), at start
time, the values of all configuration parameters.

Example:

2008-01-03 15:44:55 UTC CONFIG main: Integer option vac_frequency = 3
2008-01-03 15:44:55 UTC CONFIG main: Integer option log_level = 0
2008-01-03 15:44:55 UTC CONFIG main: Integer option sync_interval = 2000
2008-01-03 15:44:55 UTC CONFIG main: Integer option sync_interval_timeout = 10000
2008-01-03 15:44:55 UTC CONFIG main: Integer option sync_group_maxsize = 20
2008-01-03 15:44:55 UTC CONFIG main: Integer option desired_sync_time = 60000
2008-01-03 15:44:55 UTC CONFIG main: Integer option syslog = 0
2008-01-03 15:44:55 UTC CONFIG main: Integer option quit_sync_provider = 0
2008-01-03 15:44:55 UTC CONFIG main: Integer option quit_sync_finalsync = 0
2008-01-03 15:44:55 UTC CONFIG main: Integer option sync_max_rowsize = 8192
2008-01-03 15:44:55 UTC CONFIG main: Integer option sync_max_largemem = 5242880
2008-01-03 15:44:55 UTC CONFIG main: Integer option remote_listen_timeout = 300
2008-01-03 15:44:55 UTC CONFIG main: Boolean option log_pid = 0
2008-01-03 15:44:55 UTC CONFIG main: Boolean option log_timestamp = 1
2008-01-03 15:44:55 UTC CONFIG main: Boolean option cleanup_deletelogs = 0
2008-01-03 15:44:55 UTC CONFIG main: Real option real_placeholder = 0.000000
2008-01-03 15:44:55 UTC CONFIG main: String option cluster_name = dw
2008-01-03 15:44:55 UTC CONFIG main: String option conn_info = dbname=dw
2008-01-03 15:44:55 UTC CONFIG main: String option pid_file = (null)
2008-01-03 15:44:55 UTC CONFIG main: String option log_timestamp_format = %Y-%m-%d %H:%M:%S %Z
2008-01-03 15:44:55 UTC CONFIG main: String option archive_dir = (null)
2008-01-03 15:44:55 UTC CONFIG main: String option sql_on_connection = (null)
2008-01-03 15:44:55 UTC CONFIG main: String option lag_interval = (null)
2008-01-03 15:44:55 UTC CONFIG main: String option command_on_logarchive = (null)
2008-01-03 15:44:55 UTC CONFIG main: String option syslog_facility = LOCAL0
2008-01-03 15:44:55 UTC CONFIG main: String option syslog_ident = slon
2008-01-03 15:44:55 UTC CONFIG main: String option cleanup_interval = 10 minutes
2008-01-03 15:44:55 UTC CONFIG slon: worker process created - pid = 28482

Revision 1.76 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jul 20 19:59:54 2007 UTC (7 years ago) by cbbrowne
Branch: MAIN
Changes since 1.75: +4 -8 lines
Diff to previous 1.75 (colored) , to selected 1.52 (colored)
Don't use long options for --help/--version (sorry Drew), but make sure
-h and -v are generated by slon -h option.

Revision 1.66.2.7 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jul 20 19:53:25 2007 UTC (7 years ago) by cbbrowne
Branch: REL_1_2_STABLE
CVS Tags: REL_1_2_11, REL_1_2_12, REL_1_2_13, REL_1_2_14, REL_1_2_14_RC, REL_1_2_15, REL_1_2_16, REL_1_2_16_RC, REL_1_2_17, REL_1_2_17_RC, REL_1_2_17_RC2
Changes since 1.66.2.6: +3 -1 lines
Diff to previous 1.66.2.6 (colored) , to branch point 1.66 (colored) , to selected 1.52 (colored)
Add documentation to slon of -h and -v options

Revision 1.75 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jul 20 17:33:29 2007 UTC (7 years ago) by cbbrowne
Branch: MAIN
Changes since 1.74: +9 -2 lines
Diff to previous 1.74 (colored) , to selected 1.52 (colored)
Patch per Drew Hammond

- add support longopt options for --help, --version and add them to
  help output for slon

Revision 1.74 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jun 27 16:20:24 2007 UTC (7 years ago) by cbbrowne
Branch: MAIN
Changes since 1.73: +7 -7 lines
Diff to previous 1.73 (colored) , to selected 1.52 (colored)
Revisions to logging levels

- Changed config items to SLON_CONFIG
- Other interesting messages are at SLON_INFO
- Goal: Should usually be able to run with debugging level = 0 (= INFO)
  and still get all the interesting information

Revision 1.73 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 14 14:58:54 2007 UTC (7 years, 1 month ago) by cbbrowne
Branch: MAIN
Changes since 1.72: +2 -1 lines
Diff to previous 1.72 (colored) , to selected 1.52 (colored)
This is required for MinGW+gcc.

- patch per Hiroshi Saito

Revision 1.66.2.6 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 14 14:56:22 2007 UTC (7 years, 1 month ago) by cbbrowne
Branch: REL_1_2_STABLE
CVS Tags: REL_1_2_10
Changes since 1.66.2.5: +2 -1 lines
Diff to previous 1.66.2.5 (colored) , to branch point 1.66 (colored) , to selected 1.52 (colored)
This is required for MinGW+gcc.

- patch per Hiroshi Saito

Revision 1.72 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 20 20:53:18 2007 UTC (7 years, 3 months ago) by cbbrowne
Branch: MAIN
Changes since 1.71: +13 -12 lines
Diff to previous 1.71 (colored) , to selected 1.52 (colored)
Add a whole bunch of type annotations to CVS HEAD in order to silence
Splint (<http://splint.org/>) warnings.

Revision 1.71 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Apr 18 22:19:07 2007 UTC (7 years, 3 months ago) by cbbrowne
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) , to selected 1.52 (colored)
A barrel of little type changes based on running Splint analysis on the
code base (e.g. - extended LINT).  Mostly about adding type annotations;
values that need to be cast between int/size_t, annotating that functions
that return values that we ignore pass back (void), and such.

Revision 1.66.2.5 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 13 14:39:16 2006 UTC (7 years, 7 months ago) by darcyb
Branch: REL_1_2_STABLE
CVS Tags: REL_1_2_2, REL_1_2_5, REL_1_2_6, REL_1_2_7, REL_1_2_8, REL_1_2_9
Changes since 1.66.2.4: +2 -2 lines
Diff to previous 1.66.2.4 (colored) , to branch point 1.66 (colored) , to selected 1.52 (colored)
Prevent slon from seg faulting when trying to display an error of not being able to open the pid_file

Revision 1.70 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 13 14:37:18 2006 UTC (7 years, 7 months ago) by darcyb
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored) , to selected 1.52 (colored)
Prevent slon from seg faulting when a pid_file is not able to be opened.

Revision 1.66.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Dec 1 22:30:15 2006 UTC (7 years, 7 months ago) by cbbrowne
Branch: REL_1_2_STABLE
Changes since 1.66.2.3: +11 -6 lines
Diff to previous 1.66.2.3 (colored) , to branch point 1.66 (colored) , to selected 1.52 (colored)
Per Niels Breet...  Need to close file descriptors as part of
slon_worker_terminate() so that we don't chew up file descriptors if
a node's 'master DB' (e.g. - the DB it is managing) is down.

Also put in a 10s pause if attempts to connect to that database fail.
That way, the slon doesn't sit there racing to attempt opening
connections continually if there is some problem with connectivity,
perhaps worsening things, and generating dozens of log entries per
second.

Revision 1.69 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Dec 1 22:29:49 2006 UTC (7 years, 7 months ago) by cbbrowne
Branch: MAIN
Changes since 1.68: +11 -6 lines
Diff to previous 1.68 (colored) , to selected 1.52 (colored)
Per Niels Breet...  Need to close file descriptors as part of
slon_worker_terminate() so that we don't chew up file descriptors if
a node's 'master DB' (e.g. - the DB it is managing) is down.

Also put in a 10s pause if attempts to connect to that database fail.
That way, the slon doesn't sit there racing to attempt opening
connections continually if there is some problem with connectivity,
perhaps worsening things, and generating dozens of log entries per
second.

Revision 1.68 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Nov 29 20:13:37 2006 UTC (7 years, 7 months ago) by cbbrowne
Branch: MAIN
Changes since 1.67: +15 -3 lines
Diff to previous 1.67 (colored) , to selected 1.52 (colored)
- Jan Wieck added the following to the 1.2 branch; add this to HEAD
  as well

Let the watchdog restart the worker process immediately if it
terminated with exit code zero, instead of waiting for 10 seconds.

Added test_J to the ducttape suite. The test is a cascaded 3 node
setup using a separate set for each of the pgbench tables.

Revision 1.66.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Nov 14 17:24:20 2006 UTC (7 years, 8 months ago) by wieck
Branch: REL_1_2_STABLE
CVS Tags: REL_1_2_1
Changes since 1.66.2.2: +10 -3 lines
Diff to previous 1.66.2.2 (colored) , to branch point 1.66 (colored) , to selected 1.52 (colored)
Let the watchdog restart the worker process immediately if it
terminated with exit code zero, instead of waiting for 10 seconds.

Added test_J to the ducttape suite. The test is a cascaded 3 node
setup using a separate set for each of the pgbench tables.

Jan

Revision 1.67 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 27 20:10:57 2006 UTC (7 years, 8 months ago) by cbbrowne
Branch: MAIN
Changes since 1.66: +1 -5 lines
Diff to previous 1.66 (colored) , to selected 1.52 (colored)
Changed structuring of #includes to simplify things

Revision 1.66.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 27 20:09:56 2006 UTC (7 years, 8 months ago) by cbbrowne
Branch: REL_1_2_STABLE
CVS Tags: REL_1_2_1_RC1
Changes since 1.66.2.1: +6 -1 lines
Diff to previous 1.66.2.1 (colored) , to branch point 1.66 (colored) , to selected 1.52 (colored)
Recover back to previous #includes - the changes made should only
go into CVS HEAD for future usage.

Revision 1.66.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 27 19:49:21 2006 UTC (7 years, 8 months ago) by cbbrowne
Branch: REL_1_2_STABLE
Changes since 1.66: +1 -5 lines
Diff to previous 1.66 (colored) , to selected 1.52 (colored)
Restructure usage of #includes to simplify references, and to eliminate
a 8.2 #define of qsort() that causes us grief

Revision 1.66 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 2 14:29:39 2006 UTC (7 years, 11 months ago) by xfade
Branch: MAIN
CVS Tags: REL_1_2_0, REL_1_2_0_RC3, REL_1_2_0_RC4, REL_1_2_0_RC5
Branch point for: REL_1_2_STABLE
Changes since 1.65: +1 -12 lines
Diff to previous 1.65 (colored) , to selected 1.52 (colored)
Remove unused vars in slon.c and some code left behind after the watchdog change.

Revision 1.65 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Mar 21 17:59:25 2006 UTC (8 years, 4 months ago) by cbbrowne
Branch: MAIN
CVS Tags: REL_1_2_0_PRE1, REL_1_2_0_PRE2, REL_1_2_0_RC1, REL_1_2_0_RC2
Changes since 1.64: +7 -2 lines
Diff to previous 1.64 (colored) , to selected 1.52 (colored)
Add in -x option - command_on_logarchive

Upon completing a SYNC with archive logging, run the specified command,
passing it the name of the log file as argument

Revision 1.64 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 8 18:29:10 2006 UTC (8 years, 4 months ago) by darcyb
Branch: MAIN
Changes since 1.63: +3 -1 lines
Diff to previous 1.63 (colored) , to selected 1.52 (colored)
Multi purpose commit, though 1 was needed for the other.
A) Clean up version detection, we can now test against patch levels as well.
B) With the introduction of autovacuum into the PG backend, we need better autodetection than relying on vac_freq being 0.  We now check to see if auto vac is enabled in version 8.1 and newer.  If it is we check the pg_autovacuum in the pg_catalog schema to see if our internal tables are disabled, if they are we vacuum them, otherwise we leave it upto the autovacuum process to deal with.

Revision 1.63 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Feb 28 18:33:42 2006 UTC (8 years, 4 months ago) by darcyb
Branch: MAIN
Changes since 1.62: +4 -3 lines
Diff to previous 1.62 (colored) , to selected 1.52 (colored)
Fix for Exits without error message if unable to create pid file (ID: 1517)
Elevate a DEBUG to a FATAL

Revision 1.62 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 10 15:38:40 2006 UTC (8 years, 6 months ago) by cbbrowne
Branch: MAIN
Changes since 1.61: +2 -1 lines
Diff to previous 1.61 (colored) , to selected 1.52 (colored)
Add slon command line documentation for -o option

Revision 1.52.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 10 15:38:18 2006 UTC (8 years, 6 months ago) by cbbrowne
Branch: REL_1_1_STABLE
CVS Tags: REL_1_1_5, REL_1_1_5_RC3, REL_1_1_6, REL_1_1_6_RC1, REL_1_1_7, REL_1_1_8, REL_1_1_9
Changes since 1.52.2.1: +2 -1 lines
Diff to previous 1.52.2.1 (colored) , to branch point 1.52 (colored) , to next main 1.80 (colored)
Add slon command line documentation for -o option

Revision 1.52.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 6 17:07:47 2006 UTC (8 years, 6 months ago) by cbbrowne
Branch: REL_1_1_STABLE
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)
Indicate 2006 copyright date

Revision 1.61 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Nov 22 05:11:59 2005 UTC (8 years, 8 months ago) by wieck
Branch: MAIN
Changes since 1.60: +163 -125 lines
Diff to previous 1.60 (colored) , to selected 1.52 (colored)
A little attempt to make the source code readable again (reformatting
of comments that had been screwed by Darcy's pgindent run and such).

Jan

Revision 1.60 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Nov 21 21:20:04 2005 UTC (8 years, 8 months ago) by wieck
Branch: MAIN
Changes since 1.59: +491 -553 lines
Diff to previous 1.59 (colored) , to selected 1.52 (colored)
Restructuring of the watchdog process structure.

The watchdog process (original pid started as slon) will now only
die if it got the appropriate signal (usually SIGINT or SIGTERM).
If the worker process will die for any other reason, it will get
restarted.

Jan

Revision 1.59 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Sep 17 20:14:13 2005 UTC (8 years, 10 months ago) by dpage
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored) , to selected 1.52 (colored)
Fix Windows build against 8.1 with ipv6 support.

Revision 1.58 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Sep 6 13:14:05 2005 UTC (8 years, 10 months ago) by dpage
Branch: MAIN
Changes since 1.57: +42 -17 lines
Diff to previous 1.57 (colored) , to selected 1.52 (colored)
This patch adds service registration and unregistration and enginge
addition and removal to slon for win32.

Other changes are that the usage information is moved to it's own
function so it could easily be called from more places, and I also added
a "-?" option to force up the usage information.

Finally, this once again fixes the logic for the pgpipe ifdefs so it
works on win32 again - pgpipe is a function and not a macro there..
[Magnus Hagander]

Revision 1.57 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 17 14:42:43 2005 UTC (8 years, 11 months ago) by cbbrowne
Branch: MAIN
Changes since 1.56: +7 -2 lines
Diff to previous 1.56 (colored) , to selected 1.52 (colored)
Add "lag_interval" option to slon

This allows a slon to have, passed to it, a time interval.  The slon
will then ignore events until they have become older than that interval.

This allows the Gentle User to set up a subscriber that will steadily
lag by 1 hour, so you could query an old state of the database.

Revision 1.56 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Aug 12 11:07:50 2005 UTC (8 years, 11 months ago) by dpage
Branch: MAIN
Changes since 1.55: +18 -1 lines
Diff to previous 1.55 (colored) , to selected 1.52 (colored)
here is a first attempt at win32 service integration. It uses option 3
per the previous mail - this was actually also the easiest to do, even
easier than option 1.
It will look for a list of config files in the Engine subkey of the
service configuration parameters in the registry - one entry per file,
the name of the value is ignored, just the filename is read. It will
launch a slon.exe for each of these specifying the config file. If one
of the processes die while the service is running, it will be restarted.
When the service is shut down, all slon.exe processes are killed hard.

It also contains eventlog integration code, since you can't log to
stdout/stderr whlie running as a service. It's only activated when
started as a service (set using a global variable). We still write the
log to stdout when running as a service, in case extra debugging is
needed.

Finally, it fixes a bug in the logging code which failed to initialize
outbuf to the empty string if log_timestamp and log_pid were both off.
[Magnus Hagander]

Revision 1.55 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 27 20:34:33 2005 UTC (8 years, 11 months ago) by dpage
Branch: MAIN
Changes since 1.54: +33 -14 lines
Diff to previous 1.54 (colored) , to selected 1.52 (colored)
Attached is a patch that refactors slon a tiny bit, by creating
functions SlonyMain() and SlonyWatchdog() for the two branches of the
fork() command. It makes the code a little bit more readable from an
#ifdef WIN32 perspective, but mainly it's a bit of groundwork for
upcoming service integration code.

It also contains a bundle of changes to correct a previous error in some
win32 code that was committed with invalid line endings (don't ask me
how that happened.
[Magnus Hagander]

Revision 1.54 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 27 18:36:59 2005 UTC (8 years, 11 months ago) by cbbrowne
Branch: MAIN
Changes since 1.53: +31 -21 lines
Diff to previous 1.53 (colored) , to selected 1.52 (colored)
Add "stop slon after event" functionality.

This allows you to tell a slon to terminate once it receives a certain
event from one of the providers.

You could query time stamps on SYNC events to determine which SYNCs
are associated with which times, and use this to hold a subscriber
behind by (say) 4 hours.

Revision 1.53 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 20 13:59:46 2005 UTC (9 years ago) by dpage
Branch: MAIN
Changes since 1.52: +63 -9 lines
Diff to previous 1.52 (colored)
Initial Win32 port, from Magnus Hagander, with minor tweaks by Dave Page. Needs service and eventlog code yet, but works nicely from the command line :-)

Changes:
* Added "override" to LDFLAGS in the Makefile. I am no makefile guru, so
I don't really know why :-) But it was there for CFLAGS, and without it,
the pthreads library simply wasn't added to the build command...

* For win32 only, added mandatory link to "wsock32" winsock functions,
required so we can access TCP/IP functions at all.

* #ifdef out the whole "watchdog process" for win32. Win32 does not have
signals, so we don't need a special process to catch and channel those.
And we expect the service control manager to deal with restarts as
required (when it comes).

* As a consequence of win32 not having signals, change exits to just do
exit() instead of sigterm:ing the own process. This includes modifying
slon_abort() and slon_restart() (_restart seems never to be used?)

* Import pgpipe implementation from postgresql backend, and change all
read/write to piperead/pipewrite - same as in the pg backend. This is
rquired because on win32 you can't "select()" on a pipe. The pgpipe
implementation uses TCP sockets instead.

* Remove the sched_shutdown() code per my previous mail. Not strictly a
part of the win32 work...

* Start and stop winsock as appropriate.

Revision 1.52 - (view) (download) (as text) (annotate) - [selected]
Wed May 25 16:10:41 2005 UTC (9 years, 1 month ago) by cbbrowne
Branch: MAIN
CVS Tags: REL_1_1_0, REL_1_1_0_RC1, REL_1_1_1, REL_1_1_2, REL_1_1_5_RC1, REL_1_1_5_RC2
Branch point for: REL_1_1_STABLE
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)
Changes from Neil Conway:

This patch fixes various issues that crop up compiling with -Wall:

- include parser/keywords.h in backend/slony1_funcs.c, to make the declaration of ScanKeywordLookup visible

- make write_void_log() return void -- it's return value has never used,  and in any case write_void_log() didn't actually return a value

- include <sys/wait.h> in slon/slon.c, which is needed to make the declaration of wait(2) visible

- add a missing return statement to slonik_repair_config() in slonik/slonik.c

- initialize the return value of close_log_archive() properly in slon/remote_worker.c

- remove some unused variable declarations

- fix `elevel' in slon/configoptions.c:set_config_option() and get_config_option(). get_config_option() did not initialize `elevel', and set_config_option() initialized it incorrectly: find_option() takes a Postgres error level (e.g. WARNING), not a Slony error level (e.g. SLON_WARN).

Revision 1.51 - (view) (download) (as text) (annotate) - [select for diffs]
Mon May 16 17:06:33 2005 UTC (9 years, 2 months ago) by cbbrowne
Branch: MAIN
CVS Tags: REL_1_1_0_BETA5
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored) , to selected 1.52 (colored)
Fix typo in -h help output - vacuum was misspelled

Revision 1.50 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Mar 25 13:30:52 2005 UTC (9 years, 4 months ago) by xfade
Branch: MAIN
CVS Tags: REL_1_1_0_BETA1, REL_1_1_0_BETA2, REL_1_1_0_BETA3, REL_1_1_0_BETA4
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored) , to selected 1.52 (colored)
Fix cywin macro.

Revision 1.49 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 23 23:06:50 2005 UTC (9 years, 4 months ago) by darcyb
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored) , to selected 1.52 (colored)
From Andreas Pflug <pgadmin@pse-consulting.de>:

In schedule.c and slon.c, pthread_self() result is compared with a
pthread_t variable, which isn't the recommended way to check for
equality; instead pthread_equal should be used. Under win32 this fails,
because pthread_t isn't a simple value. The attached file provides a
patch for this, and should make this portable for all pthread_t platforms.

Revision 1.48 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 23 22:59:24 2005 UTC (9 years, 4 months ago) by darcyb
Branch: MAIN
Changes since 1.47: +9 -2 lines
Diff to previous 1.47 (colored) , to selected 1.52 (colored)
Whole raft of changes.
A)  use signal() on win32 since there is no sigaction under that platform
B)  have make install now install documentation if --with-docdir=<dir> is defined,  This will have to be updated to have docs installed by default.

Revision 1.47 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 17 22:54:23 2005 UTC (9 years, 4 months ago) by darcyb
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored) , to selected 1.52 (colored)
Update sigaction flags to conform to POSIX standard.  Add configure test to ensure we have SA_NODEFER as a sigaction flag.

Revision 1.46 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 10 23:11:26 2005 UTC (9 years, 4 months ago) by cbbrowne
Branch: MAIN
Changes since 1.45: +549 -295 lines
Diff to previous 1.45 (colored) , to selected 1.52 (colored)
signal handling watchdog using forked processes - Frank Thompson


Slony-I 1.1 Change Request:

	The problem at hand is related to signal handling differences
	in multithreaded programs between different operating
	systems. In the slon process, it is intended that only the
	"main" thread is dealing with signals and that it uses the
	regular thread communication like mutexes and condition
	variables to control all the other working threads.

	That mutex and condition var communication sometimes can lock
	up, which causes the entire slon daemon to freeze. This can in
	extreme cases even happen after one of the working threads
	sent the main thread a signal to restart the slon process.

	What I had in mind to fix this is to have the program to
	actually fork() very early on. The parent process will then be
	the only one dealing with signals, while the childs ignores
	all signals entirely. The parent and the master thread of the
	child (which is the current slon) will communicate over a pipe
	or a socketpair. This way, the parent could detect that the
	slon stopped responding altogether and can issue a signal 9 to
	cleanup the situation.

	In other words, building a watchdog process right into the
	slon executable.


Summary of Changes:

	slon main() will now fork() at the start and allow the parent
	process to handle cleanup, signal and termination of the child
	process.  The child process is the scheduler which will talk
	to the parent (watchdog) process and vice versa via two sets
	of socket pairs.  When shutting down the child process in the
	case of restart or termination, non blocking reads and writes
	are used to avoid lockups.  Failure to shutdown the scheduler
	process nicely, the parent will SIGKILL it to ensure timely
	operation within the signal handler.



	globals:

		slon.c
		------
		int watchdog_pipe[2];		// socket pair to talk with child process
		int	sched_wakeuppipe[2];	// socket pair to talk with scheduler and parent process

		runtime_config.c
		----------------
		pid_t slon_pid;				// current pid
		pid_t slon_ppid;			// parent pid
		pid_t slon_cpid;			// child pid

	macros:

		slon_abort() and slon_restart() will now observe which process
		in the tree they will act upon, parent or child

		#define slon_abort() \
		do { \
			kill((slon_ppid == 0 ? slon_pid : slon_ppid), SIGTERM); \
			pthread_exit(NULL); \
		} while (0)
		#define slon_restart() \
		do { \
			kill((slon_ppid == 0 ? slon_pid : slon_ppid), SIGHUP); \
		} while (0)

	functions:

		slon.c
		------
		static void sighandler(int signo);				// new slon parent process signal handler
		static void main_sigalrmhandler(int signo);		// new scheduler alarm signal handler
		static void slon_kill_child(void);				// new pipe notify based child termination function

Revision 1.45 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Feb 18 00:15:57 2005 UTC (9 years, 5 months ago) by darcyb
Branch: MAIN
Changes since 1.44: +18 -2 lines
Diff to previous 1.44 (colored) , to selected 1.52 (colored)
Check in first round of minimal net-snmp sub-agentx support, net-snmp 5.1.x is the minimum supported version.  At the moment all you can do via SNMP is get/set the log level.  SNMP support is not enabled or compiled in by default. Run configure with  --with-netsnmp to enable support.

Also added support for --with-perltools=<dir>. This is where the altperl tools should be installed to, if <dir> is not supplied the default install target is $PREFIX/bin.
TODO: configure needs to have proper detection of required perl modules (DBD:Pg)

And finnaly, correct a compiler warning in confoptions.h

Revision 1.44 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Feb 17 23:42:09 2005 UTC (9 years, 5 months ago) by cbbrowne
Branch: MAIN
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored) , to selected 1.52 (colored)
1.  Added DocBook documentation for "-a" slon option that writes log shipping
    files

2.  Added docs for "-a" option to slon runtime

3.  Added SLON_MAX_PATH #define

4.  Macro for TERMINATE_QUERY_AND_ARCHIVE;  (This one may be dubious.)

Revision 1.43 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Feb 17 06:59:04 2005 UTC (9 years, 5 months ago) by wieck
Branch: MAIN
Changes since 1.42: +7 -2 lines
Diff to previous 1.42 (colored) , to selected 1.52 (colored)
First cut on the log shipping mechanism.

The tools/slony1_dump.sh script can be used against a subscriber
to get a snapshot of a replica's user data plus minimal status
information.

If slon is started with -a <archivedir>, it will output an sql
script for every sync processing, containing statements that replicate
the changes plus keep the status information up to date. Note that these
scripts will have the same "grouping" of SYNC events that the replica
used.

Next steps:
    Add output of archive files by slon for subscribing, unsubscribing
	and merging of sets and for ddl script executions.

Jan

Revision 1.42 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 28 22:31:52 2005 UTC (9 years, 5 months ago) by cbbrowne
Branch: MAIN
Changes since 1.41: +8 -8 lines
Diff to previous 1.41 (colored) , to selected 1.52 (colored)
Updates to comments

Revision 1.41 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 12 17:27:11 2005 UTC (9 years, 6 months ago) by darcyb
Branch: MAIN
Changes since 1.40: +173 -167 lines
Diff to previous 1.40 (colored) , to selected 1.52 (colored)
pgindent run

Revision 1.40 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 10 23:45:32 2005 UTC (9 years, 6 months ago) by cbbrowne
Branch: MAIN
Changes since 1.39: +6 -2 lines
Diff to previous 1.39 (colored) , to selected 1.52 (colored)
Added a dynamic SYNC group "windowing" scheme, along with docs and
configuration option code.

This allows defining a target "desired_sync_time", defaulting to 1
minute, where, if replication is behind, slon will gradually increase
sync group sizes to try to get the expected time for the group to
take that period of time.

It backs off IMMEDIATELY, if there is a large or long running SYNC,
and starts at 1, and increases group sizes by the greater of 1 and
10% of the last group size.  Once the node gets up to date, that
also causes it to back off to sync sizes of 1 or 2.

This makes it reasonable to have the maximum sync grouping set rather
high, as the groups will only get large gradually, in keeping with
how the system is performing.

Revision 1.39 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Dec 13 22:08:49 2004 UTC (9 years, 7 months ago) by darcyb
Branch: MAIN
Changes since 1.38: +1 -2 lines
Diff to previous 1.38 (colored) , to selected 1.52 (colored)
Due to lots of SIC regarding the pg_dump safe patches, I'll commit them.

New functionality allows you to REPAIR CONFIG() a node(s) after you have used pg_dump/restore on them.
slonik has a new statement REPAIR CONFIG(),  and a new event class has been created REPAIR_CONFIG.

Revision 1.38 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Dec 13 18:58:04 2004 UTC (9 years, 7 months ago) by darcyb
Branch: MAIN
Changes since 1.37: +1 -2 lines
Diff to previous 1.37 (colored) , to selected 1.52 (colored)
Cleanup some more compiler warnings

Revision 1.37 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Nov 13 04:52:47 2004 UTC (9 years, 8 months ago) by wieck
Branch: MAIN
Changes since 1.36: +3 -23 lines
Diff to previous 1.36 (colored) , to selected 1.52 (colored)
Here is a first full functional and activated rebuiltListenEntries().
Any change to sl_node, sl_path and sl_subscribe causes slon to reload
the listen configuration. The logic is slightly different from what
was first discussed and probably not in its final state. But it passes
various configurations without any need to restart slon.

Jan

Revision 1.36 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Oct 19 00:53:11 2004 UTC (9 years, 9 months ago) by wieck
Branch: MAIN
Changes since 1.35: +7 -2 lines
Diff to previous 1.35 (colored) , to selected 1.52 (colored)
Added switch -v to slon and slonik to report version number and exit.

Jan

Revision 1.35 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Oct 18 17:06:33 2004 UTC (9 years, 9 months ago) by darcyb
Branch: MAIN
Changes since 1.34: +1 -2 lines
Diff to previous 1.34 (colored) , to selected 1.52 (colored)
Remove unused variable

Revision 1.27.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Oct 18 15:11:29 2004 UTC (9 years, 9 months ago) by wieck
Branch: REL_1_0_STABLE
CVS Tags: REL_1_0_4, REL_1_0_5, REL_1_0_6
Changes since 1.27.2.2: +6 -2 lines
Diff to previous 1.27.2.2 (colored) , to branch point 1.27 (colored) , to next main 1.80 (colored) , to selected 1.52 (colored)
Added -v option to slon to show version number and exit.

Jan

Revision 1.34 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 15 22:11:38 2004 UTC (9 years, 9 months ago) by darcyb
Branch: MAIN
Changes since 1.33: +46 -39 lines
Diff to previous 1.33 (colored) , to selected 1.52 (colored)
Don't step past the end of the passed in conn_info

Revision 1.33 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 14 16:01:05 2004 UTC (9 years, 9 months ago) by cbbrowne
Branch: MAIN
Changes since 1.32: +9 -1 lines
Diff to previous 1.32 (colored) , to selected 1.52 (colored)
Added in Emacs "local variables" section at end of C files so that
Emacs knows what indentation policy to use.

Revision 1.32 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Oct 13 18:50:55 2004 UTC (9 years, 9 months ago) by wieck
Branch: MAIN
Changes since 1.31: +9 -1 lines
Diff to previous 1.31 (colored) , to selected 1.52 (colored)
Added checks that ensure that slon is not running against any
database that has either the wrong slony schema loaded or the
wrong shared module version installed.

Jan

Revision 1.27.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Oct 13 18:49:53 2004 UTC (9 years, 9 months ago) by wieck
Branch: REL_1_0_STABLE
Changes since 1.27.2.1: +9 -1 lines
Diff to previous 1.27.2.1 (colored) , to branch point 1.27 (colored) , to selected 1.52 (colored)
Added checks that ensure that slon is not running against any
database that has either the wrong slony schema loaded or the
wrong shared module version installed.

Jan

Revision 1.27.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Sep 30 17:45:06 2004 UTC (9 years, 9 months ago) by cbbrowne
Branch: REL_1_0_STABLE
Changes since 1.27: +9 -1 lines
Diff to previous 1.27 (colored) , to selected 1.52 (colored)
1.  Add in 'helpitsbroken.txt', 'randomfacts.txt', and 'schemadoc.html'
    to STABLE

2.  Modified README to point to additional new documentation

3.  Implemented SET DROP TABLE and SET DROP SEQUENCE, modifying
    slonik, slon events, Slony-I functions, as well as the documentation.

Revision 1.31 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Sep 30 14:50:44 2004 UTC (9 years, 9 months ago) by wieck
Branch: MAIN
Changes since 1.30: +3 -2 lines
Diff to previous 1.30 (colored) , to selected 1.52 (colored)
Option -s is sync_interval.

Adjusted default values for sync_interval, sync_interval_timeout
and sync_group_maxsize

Jan

Revision 1.30 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Sep 24 22:12:36 2004 UTC (9 years, 9 months ago) by darcyb
Branch: MAIN
Changes since 1.29: +188 -176 lines
Diff to previous 1.29 (colored) , to selected 1.52 (colored)
add syslog support, pid file writing and other bells

Revision 1.29 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Sep 24 18:51:43 2004 UTC (9 years, 9 months ago) by darcyb
Branch: MAIN
Changes since 1.28: +48 -57 lines
Diff to previous 1.28 (colored) , to selected 1.52 (colored)
Ok it's finaly here, a slon config file.  There are no command line argument chages, so this should be a transparent dropin.  I'll be following this up with some documentation and the like RSN(tm).

Revision 1.28 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Aug 30 16:47:45 2004 UTC (9 years, 10 months ago) by darcyb
Branch: MAIN
Changes since 1.27: +13 -3 lines
Diff to previous 1.27 (colored) , to selected 1.52 (colored)
Add -c directive to change the frequency of vaccums, 0 disables to allow pg_autovac to deal with it

Revision 1.27 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jun 8 15:15:49 2004 UTC (10 years, 1 month ago) by wieck
Branch: MAIN
CVS Tags: REL_1_0_0, REL_1_0_0_BETA2, REL_1_0_0_BETA3, REL_1_0_0_RC1, REL_1_0_1, REL_1_0_2
Branch point for: REL_1_0_STABLE
Changes since 1.26: +18 -2 lines
Diff to previous 1.26 (colored) , to selected 1.52 (colored)
Added a SYNC interval timeout controlled by the -t commandline
option. This is to fix bug 817 where sequences or under some
race condition even table updates would not be replicated until
the next update to a replicated table.

Jan

Revision 1.26 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jun 2 14:08:45 2004 UTC (10 years, 1 month ago) by wieck
Branch: MAIN
CVS Tags: REL_1_0_0_BETA1
Changes since 1.25: +14 -6 lines
Diff to previous 1.25 (colored) , to selected 1.52 (colored)
Check after starting to listen for the _Restart notify that there
is only one listener for this event in order to prevent multiple
slon daemons to server the same node.

Jan

Revision 1.25 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 21 20:18:51 2004 UTC (10 years, 2 months ago) by wieck
Branch: MAIN
Changes since 1.24: +67 -7 lines
Diff to previous 1.24 (colored) , to selected 1.52 (colored)
Added sync grouping in remoteWorker. If more sync events are queued,
the subscriber will apply multiple of them together.

Added slon commandline options for debuglevel, sync interval and
maximum sync event group size.

Jan

Revision 1.24 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 13 20:00:20 2004 UTC (10 years, 3 months ago) by wieck
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) , to selected 1.52 (colored)
First time failover really worked.

Jan

Revision 1.23 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 2 03:01:18 2004 UTC (10 years, 3 months ago) by wieck
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) , to selected 1.52 (colored)
Added an hourly automatic slon restart as the ultimate resource
leak avoiding.

Jan

Revision 1.22 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 31 17:19:25 2004 UTC (10 years, 3 months ago) by wieck
Branch: MAIN
Changes since 1.21: +3 -4 lines
Diff to previous 1.21 (colored) , to selected 1.52 (colored)
Fixed signal handling to use sigwait(). Signals and pthreads don't
go together well on AIX.

Jan

Revision 1.21 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Mar 29 20:34:11 2004 UTC (10 years, 3 months ago) by wieck
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored) , to selected 1.52 (colored)
Fixed unterminated strings and multiline string constants not
discoverd by earlier gcc version.

Jan

Revision 1.20 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Mar 28 19:09:05 2004 UTC (10 years, 3 months ago) by wieck
Branch: MAIN
Changes since 1.19: +37 -2 lines
Diff to previous 1.19 (colored) , to selected 1.52 (colored)
Added a timeout mechanism that makes sure the shutdown does not
hang waiting for TCP timeouts.

Jan

Revision 1.19 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 11 22:00:45 2004 UTC (10 years, 4 months ago) by wieck
Branch: MAIN
CVS Tags: Sample1
Changes since 1.18: +17 -1 lines
Diff to previous 1.18 (colored) , to selected 1.52 (colored)
Added another notify, "_<clustername>_Restart", which causes the
node daemon to restart by shutting down completely and calling
execvp() from main() after all threads returned.

Jan

Revision 1.18 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Mar 2 13:29:55 2004 UTC (10 years, 4 months ago) by wieck
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored) , to selected 1.52 (colored)
Added PG 7.4.1's scanint8() function slightly modified and use
the INT64_FORMAT from pg_config.h for [s]printf().

Jan

Revision 1.17 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Feb 27 16:57:54 2004 UTC (10 years, 4 months ago) by wieck
Branch: MAIN
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored) , to selected 1.52 (colored)
Cleanup of some logging levels.

Fixed remote worker to adjust configuration at subscription time
to catch up.

System can now hot join and replicate.

Jan

Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Feb 26 22:27:00 2004 UTC (10 years, 4 months ago) by wieck
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) , to selected 1.52 (colored)
Replicated some data ... not sure yet if everything was
consistent.

Jan

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 25 19:47:37 2004 UTC (10 years, 4 months ago) by wieck
Branch: MAIN
Changes since 1.14: +5 -7 lines
Diff to previous 1.14 (colored) , to selected 1.52 (colored)
Implemented SUBSCRIBE_SET and ENABLE_SUBSCRIPTION. Slon can now
subscribe to a set and copy over the initial data.

Jan

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Feb 24 21:03:35 2004 UTC (10 years, 4 months ago) by wieck
Branch: MAIN
Changes since 1.13: +48 -29 lines
Diff to previous 1.13 (colored) , to selected 1.52 (colored)
Changed all printf()'s into slon_log calls and implemented
a rudimentary first version of that.

Jan

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Feb 24 16:51:21 2004 UTC (10 years, 4 months ago) by wieck
Branch: MAIN
Changes since 1.12: +14 -6 lines
Diff to previous 1.12 (colored) , to selected 1.52 (colored)
Added the remote worker thread. The slon engine is now capable of
processing a few, simple configuration events, including event forwarding,
confirmation and cleanup.

Jan

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Feb 22 03:10:48 2004 UTC (10 years, 5 months ago) by wieck
Branch: MAIN
Changes since 1.11: +33 -21 lines
Diff to previous 1.11 (colored) , to selected 1.52 (colored)
Changed slon.c to use slon_mkquery().

Added remote listen thead, listening and receiving for remote
events.

TODO: Add remote worker and default worker, message queue from
      listener to worker and processing events.

	  Retrieve and forward confirmations.

Jan

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Feb 20 17:59:42 2004 UTC (10 years, 5 months ago) by wieck
Branch: MAIN
Changes since 1.10: +2 -4 lines
Diff to previous 1.10 (colored) , to selected 1.52 (colored)
Added local event listen thread. The thread fully listens and
retrieves local events, including confirming them. It does not
yet process the content (runtime configuration maintenance).

Jan

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Feb 20 15:13:28 2004 UTC (10 years, 5 months ago) by wieck
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) , to selected 1.52 (colored)
Adjusted copyright notice to 2004 and added some functionality in
runtime configuration processing.

Jan

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 22 21:26:51 2004 UTC (10 years, 6 months ago) by wieck
Branch: MAIN
Changes since 1.8: +39 -676 lines
Diff to previous 1.8 (colored) , to selected 1.52 (colored)
Started restructuring the thread model according to
the implementation doc

Jan

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 9 21:33:14 2004 UTC (10 years, 6 months ago) by wieck
Branch: MAIN
Changes since 1.7: +105 -1 lines
Diff to previous 1.7 (colored) , to selected 1.52 (colored)
New ducttape command to add nodes in a simple 1:1 path cluster.

More processing of events, forwarding etc.

Jan

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 9 02:17:48 2004 UTC (10 years, 6 months ago) by wieck
Branch: MAIN
Changes since 1.6: +27 -2 lines
Diff to previous 1.6 (colored) , to selected 1.52 (colored)
Added remote event handling and confirm exchange.
System now exchanges configuration events, confirm
messages and cleans up.

Jan

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 17 21:21:13 2003 UTC (10 years, 7 months ago) by wieck
Branch: MAIN
Changes since 1.5: +53 -2 lines
Diff to previous 1.5 (colored) , to selected 1.52 (colored)
The "local" slon thread now listens for events and processes
STORE_NODE, ENABLE_NODE, STORE_PATH, STORE_LISTEN and STORE_SET
including a new remote thread to be spawned that listens on the
remote database for events.

Jan

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 16 17:00:34 2003 UTC (10 years, 7 months ago) by wieck
Branch: MAIN
Changes since 1.4: +163 -1 lines
Diff to previous 1.4 (colored) , to selected 1.52 (colored)
Some fixes in support functions.
Finished replication engine functionality of SYNC and CleanUp threads.

Jan

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Dec 13 17:13:05 2003 UTC (10 years, 7 months ago) by wieck
Branch: MAIN
Changes since 1.3: +49 -1 lines
Diff to previous 1.3 (colored) , to selected 1.52 (colored)
Comments.

Jan

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Dec 13 17:02:03 2003 UTC (10 years, 7 months ago) by wieck
Branch: MAIN
Changes since 1.2: +620 -2 lines
Diff to previous 1.2 (colored) , to selected 1.52 (colored)
Beginning of multithreaded replication engine framework.

Jan

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 3 19:29:53 2003 UTC (10 years, 7 months ago) by wieck
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored) , to selected 1.52 (colored)
Added slon.h for global definitions in the replication engine.

Jan

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 14:59:44 2003 UTC (10 years, 7 months ago) by wieck
Branch: MAIN
Diff to selected 1.52 (colored)
Added the prototypes versions of some backend functionality
already slightly modified. The database schema will not have
a fixed namespace, but one to be choosen at the time adding
a database to a cluster.

Added the directory to contain the main replication engine slon.

Jan

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

ViewVC Help
Powered by ViewVC 1.0.3