| 3705 | |
| 3706 | |
| 3707 | void UnlinkPrunedFiles(std::set<int>& setFilesToPrune) |
| 3708 | { |
| 3709 | for (set<int>::iterator it = setFilesToPrune.begin(); it != setFilesToPrune.end(); ++it) { |
| 3710 | CDiskBlockPos pos(*it, 0); |
| 3711 | boost::filesystem::remove(GetBlockPosFilename(pos, "blk")); |
| 3712 | boost::filesystem::remove(GetBlockPosFilename(pos, "rev")); |
| 3713 | LogPrintf("Prune: %s deleted blk/rev (%05u)\n", __func__, *it); |
| 3714 | } |
| 3715 | } |
| 3716 | |
| 3717 | /* Calculate the block/rev files that should be deleted to remain under target*/ |
| 3718 | void FindFilesToPrune(std::set<int>& setFilesToPrune) |
no test coverage detected