]> git.ipfire.org Git - thirdparty/squid.git/blame - src/StoreMetaURL.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / StoreMetaURL.cc
CommitLineData
528b2c61 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
528b2c61 3 *
bbc27441
AJ
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.
528b2c61 7 */
8
bbc27441
AJ
9/* DEBUG: section 20 Storage Manager Swapfile Metadata */
10
582c2af2 11#include "squid.h"
528b2c61 12#include "MemObject.h"
602d9612
A
13#include "Store.h"
14#include "StoreMetaURL.h"
528b2c61 15
62e76326 16bool
528b2c61 17StoreMetaURL::checkConsistency(StoreEntry *e) const
18{
19 assert (getType() == STORE_META_URL);
62e76326 20
c877c0bc 21 if (!e->mem_obj->hasUris())
62e76326 22 return true;
23
c877c0bc 24 if (strcasecmp(e->mem_obj->urlXXX(), (char *)value)) {
e0236918 25 debugs(20, DBG_IMPORTANT, "storeClientReadHeader: URL mismatch");
c877c0bc 26 debugs(20, DBG_IMPORTANT, "\t{" << (char *) value << "} != {" << e->mem_obj->urlXXX() << "}");
62e76326 27 return false;
528b2c61 28 }
62e76326 29
528b2c61 30 return true;
31}
f53969cc 32