int scanned;
} store_rebuild_progress;
-static store_rebuild_progress *RebuildProgress = NULL;
+static store_rebuild_progress *RebuildProgress = nullptr;
void
StoreRebuildData::updateStartTime(const timeval &dirStartTime)
static int validated = 0;
static int seen = 0;
- if (currentSearch == NULL || currentSearch->isDone())
+ if (currentSearch == nullptr || currentSearch->isDone())
currentSearch = Store::Root().search();
size_t statCount = 500;
if (store_digest)
storeDigestNoteStoreReady();
- currentSearch = NULL;
+ currentSearch = nullptr;
} else
- eventAdd("storeCleanup", storeCleanup, NULL, 0.0, 1);
+ eventAdd("storeCleanup", storeCleanup, nullptr, 0.0, 1);
}
/* meta data recreated from disk image in swap directory */
((double) counts.objcount / (dt > 0.0 ? dt : 1.0)) << " objects/sec).");
debugs(20, Important(56), "Beginning Validation Procedure");
- eventAdd("storeCleanup", storeCleanup, NULL, 0.0, 1);
+ eventAdd("storeCleanup", storeCleanup, nullptr, 0.0, 1);
xfree(RebuildProgress);
- RebuildProgress = NULL;
+ RebuildProgress = nullptr;
}
/*
if (sd_index >= Config.cacheSwap.n_configured)
return;
- if (NULL == RebuildProgress)
+ if (nullptr == RebuildProgress)
return;
RebuildProgress[sd_index].total = total;
InitStoreEntry visitor(&tmpe, key);
for_each(*tlv_list, visitor);
storeSwapTLVFree(tlv_list);
- tlv_list = NULL;
+ tlv_list = nullptr;
if (storeKeyNull(key)) {
debugs(47, DBG_IMPORTANT, "WARNING: Ignoring keyless cache entry");