squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
StoreMetaURL.cc
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2022 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
17
StoreMetaURL::checkConsistency
(
StoreEntry
*e)
const
18
{
19
assert
(
getType
() ==
STORE_META_URL
);
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
StoreEntry::mem_obj
MemObject * mem_obj
Definition:
Store.h:219
StoreMetaURL::checkConsistency
bool checkConsistency(StoreEntry *) const
Definition:
StoreMetaURL.cc:17
STORE_META_URL
@ STORE_META_URL
Definition:
StoreMeta.h:68
StoreMetaURL.h
Store.h
assert
#define assert(EX)
Definition:
assert.h:19
StoreMetaURL::getType
char getType() const
Definition:
StoreMetaURL.h:19
StoreMeta::value
void * value
Definition:
StoreMeta.h:134
StoreEntry
Definition:
Store.h:42
MemObject::hasUris
bool hasUris() const
whether setUris() has been called
Definition:
MemObject.cc:70
DBG_IMPORTANT
#define DBG_IMPORTANT
Definition:
Stream.h:41
MemObject.h
MemObject::urlXXX
const char * urlXXX() const
Definition:
MemObject.h:128
squid.h
debugs
#define debugs(SECTION, LEVEL, CONTENT)
Definition:
Stream.h:196
Introduction
About Squid
Why Squid?
Squid Developers
How to Donate
How to Help Out
Getting Squid
Squid Source Packages
Squid Deployment Case-Studies
Squid Software Foundation
Documentation
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
gr
il
jp
pl
...
full list
FTP Package Archive