XPROF_storeClient_kickReads,
XPROF_storeDirCallback,
XPROF_StoreEntry_write,
- XPROF_storeGet,
XPROF_storeGetMemSpace,
XPROF_storeMaintainSwapSpace,
XPROF_storeRelease,
/// \ingroup StoreAPI
typedef void (*STOREGETCLIENT) (StoreEntry *, void *cbdata);
-
namespace Store {
- void Stats(StoreEntry *output);
- void Maintain(void *unused);
+void Stats(StoreEntry *output);
+void Maintain(void *unused);
};
/// \ingroup StoreAPI
*free_in = (int) sfs.f_ffree;
return 0;
}
+
} // namespace Store
#endif /* SQUID_STORE_CONTROLLED_H */
+
void
Store::Controller::allowCollapsing(StoreEntry *e, const RequestFlags &reqFlags,
- const HttpRequestMethod &reqMethod)
+ const HttpRequestMethod &reqMethod)
{
e->makePublic(); // this is needed for both local and SMP collapsing
if (transients)
}
namespace Store {
- static RefCount<Controller> TheRoot;
+static RefCount<Controller> TheRoot;
}
Store::Controller&
{
TheRoot = nullptr;
}
+
} // namespace Store
#endif /* SQUID_STORE_CONTROLLER_H */
+
#include "store/Controlled.h"
#include "StoreIOState.h"
-
class ConfigOption;
class RemovalPolicy;
store(i)->sync();
}
-void
+void
Store::Disks::markForUnlink(StoreEntry &e) {
if (e.swap_filen >= 0)
store(e.swap_dirn)->markForUnlink(e);
}
-void
+void
Store::Disks::unlink(StoreEntry &e) {
if (e.swap_filen >= 0)
store(e.swap_dirn)->unlink(e);
Store::Disks::updateCollapsed(StoreEntry &collapsed)
{
return collapsed.swap_filen >= 0 &&
- dir(collapsed.swap_dirn).updateCollapsed(collapsed);
+ dir(collapsed.swap_dirn).updateCollapsed(collapsed);
}
-
/* Store::Disks globals that should be converted to use RegisteredRunner */
void
dynamic_cast<SwapDir *>(INDEXSD(e->swap_dirn))->logEntry(*e, op);
}
+
void storeDirSwapLog(const StoreEntry *e, int op);
#endif /* SQUID_STORE_DISKS_H */
+
++bucket;
debugs(47,3, "got entries: " << entries.size());
}
+
#include "store/forward.h"
namespace Store {
- StoreSearch *NewLocalSearch();
+StoreSearch *NewLocalSearch();
} // namespace Store
#endif /* SQUID_STORE_LOCAL_SEARCH_H */
+
namespace Store
{
- class Storage;
- class Controller;
- class Controlled;
- class Disks;
- class Disk;
- class DiskConfig;
-
- typedef ::StoreEntry Entry;
- typedef ::MemStore Memory;
- typedef ::Transients Transients;
+class Storage;
+class Controller;
+class Controlled;
+class Disks;
+class Disk;
+class DiskConfig;
+
+typedef ::StoreEntry Entry;
+typedef ::MemStore Memory;
+typedef ::Transients Transients;
} // namespace Store
// TODO: Remove these once all code has been transitioned to Store namespace.
void
TestSwapDir::parse(int, char*)
{}
+