[Opensrf-commits] r1433 - in trunk: include/opensrf src/libopensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Sep 19 15:28:00 EDT 2008


Author: erickson
Date: 2008-09-19 15:27:56 -0400 (Fri, 19 Sep 2008)
New Revision: 1433

Modified:
   trunk/include/opensrf/log.h
   trunk/src/libopensrf/log.c
Log:
added a force set option on log XID to override it even we can act as an origin client

Modified: trunk/include/opensrf/log.h
===================================================================
--- trunk/include/opensrf/log.h	2008-09-19 18:55:03 UTC (rev 1432)
+++ trunk/include/opensrf/log.h	2008-09-19 19:27:56 UTC (rev 1433)
@@ -72,7 +72,14 @@
 void osrfLogCleanup( void );
 
 void osrfLogClearXid( void );
+/**
+ * Set the log XID.  This only sets the xid if we are not the origin client 
+ */
 void osrfLogSetXid(char* xid);
+/**
+ * Set the log XID regardless of whether we are the origin client
+ */
+void osrfLogForceXid(char* xid);
 void osrfLogMkXid( void );
 void osrfLogSetIsClient(int is);
 char* osrfLogGetXid( void );

Modified: trunk/src/libopensrf/log.c
===================================================================
--- trunk/src/libopensrf/log.c	2008-09-19 18:55:03 UTC (rev 1432)
+++ trunk/src/libopensrf/log.c	2008-09-19 19:27:56 UTC (rev 1433)
@@ -53,6 +53,9 @@
 void osrfLogSetXid(char* xid) {
    if(!_osrfLogIsClient) _osrfLogSetXid(xid);
 }
+void osrfLogForceXid(char* xid) {
+   _osrfLogSetXid(xid);
+}
 
 void osrfLogMkXid( void ) {
    if(_osrfLogIsClient) {



More information about the opensrf-commits mailing list