/*
- * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#define SQUID_ENUMS_H
enum fd_type {
- FD_NONE,
+ FD_NONE_TYPE,
FD_LOG,
FD_FILE,
FD_SOCKET,
} mem_status_t;
typedef enum {
+ /// Has not considered whether to send ICP queries to peers yet.
PING_NONE,
+ /// Sent ICP queries to peers and still awaiting responses.
PING_WAITING,
+ /// Not waiting for ICP responses now and will not send ICP queries later.
+ /// The ICP queries may (or may not) have been sent earlier.
PING_DONE
} ping_status_t;
SWAPOUT_WRITING,
/// StoreEntry is associated with a complete (i.e., fully swapped out) disk store entry.
/// Guarantees the disk store entry existence.
- SWAPOUT_DONE
+ SWAPOUT_DONE,
+ /// StoreEntry is associated with an unusable disk store entry.
+ /// Swapout attempt has failed. The entry should be marked for eventual deletion.
+ /// Guarantees the disk store entry existence.
+ SWAPOUT_FAILED
} swap_status_t;
typedef enum {
ENTRY_NEGCACHED,
ENTRY_VALIDATED,
ENTRY_BAD_LENGTH,
- ENTRY_ABORTED
+ ENTRY_ABORTED,
+ /// Whether the entry serves collapsed hits now.
+ /// Meaningful only for public entries.
+ ENTRY_REQUIRES_COLLAPSING
};
/*