slony1-bugs at lists.slony.info slony1-bugs at lists.slony.info
Thu Feb 7 02:52:33 PST 2008
http://www.slony.info/bugzilla/show_bug.cgi?id=34

           Summary: slonik crash if spoolnode = true
           Product: Slony-I
           Version: 1.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: high
         Component: slonik
        AssignedTo: slony1-bugs at lists.slony.info
        ReportedBy: prouxel.pacte at gmail.com
                CC: slony1-bugs at lists.slony.info
   Estimated Hours: 0.0


I want to use a node with no database replication and that i use for generate
logshipping.

node 1 admin conninfo='host=127.0.0.1 dbname=fb7 user=pgslony port=5433';
node 2 admin conninfo='host=127.0.0.1 dbname=fb7 user=pgslony port=5435'';

init cluster (id = 1, comment = 'Node 1 - fb7 at 127.0.0.1');

# STORE NODE
store node (id = 2, spoolnode = true, comment = 'Node 2 ');

in slonik.c:store_node()
 if (!stmt->no_spool)
        {
                adminfo1 = get_active_adminfo((SlonikStmt *) stmt,
stmt->no_id);
                if (adminfo1 == NULL)
                        return -1;
        }

  adminfo2 = get_checked_adminfo((SlonikStmt *) stmt, stmt->ev_origin);
  if (adminfo2 == NULL)
       return -1;

  if (db_begin_xact((SlonikStmt *) stmt, adminfo2) < 0) 
       return -1;

stmt=0 when spoolnode = true so it crash.


-- 
Configure bugmail: http://www.slony.info/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Slony1-bugs mailing list