StoreMetaURL.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 /* DEBUG: section 20 Storage Manager Swapfile Metadata */
10 
11 #include "squid.h"
12 #include "MemObject.h"
13 #include "Store.h"
14 #include "StoreMetaURL.h"
15 
16 bool
18 {
20 
21  if (!e->mem_obj->hasUris())
22  return true;
23 
24  if (strcasecmp(e->mem_obj->urlXXX(), (char *)value)) {
25  debugs(20, DBG_IMPORTANT, "storeClientReadHeader: URL mismatch");
26  debugs(20, DBG_IMPORTANT, "\t{" << (char *) value << "} != {" << e->mem_obj->urlXXX() << "}");
27  return false;
28  }
29 
30  return true;
31 }
32 
#define assert(EX)
Definition: assert.h:17
void * value
Definition: StoreMeta.h:133
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Debug.h:123
#define DBG_IMPORTANT
Definition: Debug.h:45
bool hasUris() const
whether setUris() has been called
Definition: MemObject.cc:71
MemObject * mem_obj
Definition: Store.h:162
bool checkConsistency(StoreEntry *) const
Definition: StoreMetaURL.cc:17
char getType() const
Definition: StoreMetaURL.h:19
const char * urlXXX() const
Definition: MemObject.h:91

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors