Data Fields | |
struct SyncHashCacheHead * | head |
the parent head | |
struct SyncHashCacheEntry * | next |
the next entry in the hash chain | |
struct SyncHashCacheEntry * | storing |
the next entry in the storing chain | |
enum SyncHashState | state |
state bits | |
uintmax_t | index |
assigned by order of creation | |
uint32_t | busy |
the tree worker usage count | |
uint32_t | small |
the small hash | |
struct ccn_charbuf * | hash |
hash used to reach this entry | |
struct SyncNodeComposite * | ncL |
the local node in memory | |
struct SyncNodeComposite * | ncR |
some remote node in memory | |
int64_t | lastUsed |
time when entry last used in compare | |
int64_t | lastLocalFetch |
time when local entry last fetched | |
int64_t | lastRemoteFetch |
time when remote entry last fetched | |
ccnr_hwm | stablePoint |
stable point (roots only) |
Definition at line 48 of file SyncHashCache.h.
uint32_t SyncHashCacheEntry::busy |
the tree worker usage count
Definition at line 54 of file SyncHashCache.h.
Referenced by abortCompare(), noteHash(), noteRemoteHash(), SyncTreeWorkerInit(), SyncTreeWorkerPop(), and SyncTreeWorkerPush().
struct ccn_charbuf* SyncHashCacheEntry::hash |
hash used to reach this entry
Definition at line 56 of file SyncHashCache.h.
Referenced by abortCompare(), exclusionsFromHashList(), HeartbeatAction(), localFreeEntry(), noteHash(), noteRemoteHash(), purgeOldEntries(), SendDeltasReply(), setCovered(), SyncCacheEntryFetch(), SyncCacheEntryStore(), SyncHashEnter(), SyncHashLookup(), SyncRootAdviseResponse(), and SyncStartNodeFetch().
the parent head
Definition at line 49 of file SyncHashCache.h.
Referenced by findAndDeleteRoot(), HeartbeatAction(), setCovered(), SyncCacheEntryFetch(), SyncCacheEntryStore(), and SyncHashEnter().
uintmax_t SyncHashCacheEntry::index |
assigned by order of creation
Definition at line 53 of file SyncHashCache.h.
Referenced by SyncHashEnter().
time when local entry last fetched
Definition at line 60 of file SyncHashCache.h.
time when remote entry last fetched
Definition at line 61 of file SyncHashCache.h.
Referenced by noteRemoteHash(), and SyncInterestArrived().
int64_t SyncHashCacheEntry::lastUsed |
time when entry last used in compare
Definition at line 59 of file SyncHashCache.h.
Referenced by cacheEntryForElem(), chooseRemoteHash(), doComparison(), exclusionsFromHashList(), noteHash(), noteRemoteHash(), purgeOldEntries(), SyncHashEnter(), and SyncStartCompareAction().
the local node in memory
Definition at line 57 of file SyncHashCache.h.
Referenced by CompareAction(), doComparison(), formatStats(), localFreeEntry(), MakeNodeFromNames(), newNodeCommon(), printTreeInner(), purgeOldEntries(), SyncCacheEntryFetch(), SyncCacheEntryStore(), SyncInterestArrived(), SyncRemoteFetchResponse(), SyncTreeGenerateNames(), SyncTreeLookupName(), SyncTreeMarkReachable(), SyncTreeMergeNames(), SyncTreeWorkerGetElem(), SyncTreeWorkerPush(), testReadBuilder(), and UpdateAction().
some remote node in memory
Definition at line 58 of file SyncHashCache.h.
Referenced by ccns_root_advise_response(), CompareAction(), doComparison(), doPreload(), localFreeEntry(), printTreeInner(), SyncRemoteFetchResponse(), SyncRootAdviseResponse(), SyncTreeGenerateNames(), SyncTreeLookupName(), SyncTreeMarkReachable(), SyncTreeMergeNames(), SyncTreeWorkerGetElem(), and SyncTreeWorkerPush().
the next entry in the hash chain
Definition at line 50 of file SyncHashCache.h.
Referenced by localFreeEntry(), purgeOldEntries(), SyncHashCacheFree(), SyncHashClearMarks(), SyncHashEnter(), SyncHashLookup(), and SyncHashRemoveEntry().
uint32_t SyncHashCacheEntry::small |
the small hash
Definition at line 55 of file SyncHashCache.h.
Referenced by showCacheEntry(), SyncHashEnter(), SyncHashLookup(), and SyncHashRemoveEntry().
stable point (roots only)
Definition at line 62 of file SyncHashCache.h.
Referenced by HeartbeatAction(), SyncHashEnter(), and UpdateAction().
state bits
Definition at line 52 of file SyncHashCache.h.
Referenced by chooseRemoteHash(), doPreload(), ensureRemoteEntry(), exclusionsFromHashList(), HeartbeatAction(), isCovered(), newNodeCommon(), noteHash(), noteRemoteHash(), purgeOldEntries(), setCovered(), SyncCacheEntryFetch(), SyncCacheEntryStore(), SyncHashClearMarks(), SyncHashEnter(), SyncRemoteFetchResponse(), SyncStartNodeFetch(), and SyncTreeMarkReachable().
the next entry in the storing chain
Definition at line 51 of file SyncHashCache.h.
Referenced by findAndDeleteRoot(), HeartbeatAction(), and newNodeCommon().