Author: jgg
Date: 1999-01-20 05:11:25 GMT
Hide hit for local uris
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: acquire-worker.cc,v 1.16 1998/12/14 06:54:41 jgg Exp $
+// $Id: acquire-worker.cc,v 1.17 1999/01/20 05:11:25 jgg Exp $
/* ######################################################################
Acquire Worker
/* ######################################################################
Acquire Worker
{
if (StringToBool(LookupTag(Message,"IMS-Hit"),false) == true ||
StringToBool(LookupTag(Message,"Alt-IMS-Hit"),false) == true)
{
if (StringToBool(LookupTag(Message,"IMS-Hit"),false) == true ||
StringToBool(LookupTag(Message,"Alt-IMS-Hit"),false) == true)
+ {
+ /* Hide 'hits' for local only sources - we also manage to
+ hide gets */
+ if (Config->LocalOnly == false)
+ Log->IMSHit(Desc);
+ }
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: acquire-worker.h,v 1.8 1998/12/04 21:16:48 jgg Exp $
+// $Id: acquire-worker.h,v 1.9 1999/01/20 05:11:25 jgg Exp $
/* ######################################################################
Acquire Worker - Worker process manager
/* ######################################################################
Acquire Worker - Worker process manager
pkgAcquireStatus *Log;
MethodConfig *Config;
string Access;
pkgAcquireStatus *Log;
MethodConfig *Config;
string Access;
// This is the subprocess IPC setup
pid_t Process;
int InFd;
// This is the subprocess IPC setup
pid_t Process;
int InFd;