]> git.ipfire.org Git - thirdparty/squid.git/blob - src/StoreMetaURL.cc
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / StoreMetaURL.cc
1 /*
2 * Copyright (C) 1996-2014 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 }