[interchange-cvs] interchange - heins modified lib/Vend/Table/Common.pm

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Mon Jan 7 23:46:01 2002


User:      heins
Date:      2002-01-08 04:45:37 GMT
Modified:  lib/Vend/Table Common.pm
Log:
	* Add new MIRROR_QUAL param which allows filtering of which records
	  are mirrored.

	  For example, in new PageTables mode you can set:

	  	  Database page_mem page_mem.txt TAB
	  	  Database page_mem MEMORY 		 1
	  	  Database page_mem MIRROR       page
	  	  Database page_mem MIRROR_QUAL  WHERE code = base_page

      That will prevent to-be-published pages from being mirrored.

Revision  Changes    Path
2.9       +3 -3      interchange/lib/Vend/Table/Common.pm


rev 2.9, prev_rev 2.8
Index: Common.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Table/Common.pm,v
retrieving revision 2.8
retrieving revision 2.9
diff -u -r2.8 -r2.9
--- Common.pm	2001/12/29 19:49:33	2.8
+++ Common.pm	2002/01/08 04:45:37	2.9
@@ -1,6 +1,6 @@
 # Vend::Table::Common - Common access methods for Interchange databases
 #
-# $Id: Common.pm,v 2.8 2001/12/29 19:49:33 mheins Exp $
+# $Id: Common.pm,v 2.9 2002/01/08 04:45:37 mheins Exp $
 #
 # Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -22,7 +22,7 @@
 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA  02111-1307  USA.
 
-$VERSION = substr(q$Revision: 2.8 $, 10);
+$VERSION = substr(q$Revision: 2.9 $, 10);
 use strict;
 
 package Vend::Table::Common;
@@ -1320,7 +1320,7 @@
 #::logDebug("idb=$idb odb=$odb");
 	eval {
 		my $f;
-		while($f = $idb->each_nokey()) {
+		while($f = $idb->each_nokey($options->{MIRROR_QUAL})) {
 #::logDebug("importing key=$f->[0]");
 			$odb->set_row(@$f);
 		}