]> git.ipfire.org Git - thirdparty/squid.git/blame - src/DiskIO/IpcIo/IpcIoIOStrategy.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / DiskIO / IpcIo / IpcIoIOStrategy.cc
CommitLineData
254912f3 1/*
2cd0bda2 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
bbc27441
AJ
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.
254912f3
AR
7 */
8
bbc27441
AJ
9/* DEBUG: section 47 Store Directory Routines */
10
f7f3304a 11#include "squid.h"
254912f3 12#include "IpcIoFile.h"
9199139f 13#include "IpcIoIOStrategy.h"
b6b42084 14#include "unlinkd.h"
9199139f 15
254912f3
AR
16bool
17IpcIoIOStrategy::shedLoad()
18{
19 return false;
20}
21
22int
23IpcIoIOStrategy::load()
24{
25 /* Return 999 (99.9%) constant load */
26 return 999;
27}
28
29DiskFile::Pointer
30IpcIoIOStrategy::newFile (char const *path)
31{
32 return new IpcIoFile (path);
33}
34
c521ad17
DK
35bool
36IpcIoIOStrategy::unlinkdUseful() const
37{
38 return true;
39}
40
254912f3
AR
41void
42IpcIoIOStrategy::unlinkFile(char const *path)
43{
254912f3 44 unlinkdUnlink(path);
254912f3 45}
f53969cc 46