| 94 | static bool HasFailedWorkForPrefix(const std::string& prefix); |
| 95 | |
| 96 | static uint64_t FingerprintUpload(const std::vector<uint8_t>& data) { |
| 97 | uint64_t hash = 1469598103934665603ULL; |
| 98 | for (uint8_t byte : data) { |
| 99 | hash ^= byte; |
| 100 | hash *= 1099511628211ULL; |
| 101 | } |
| 102 | hash ^= static_cast<uint64_t>(data.size()); |
| 103 | hash *= 1099511628211ULL; |
| 104 | return hash; |
| 105 | } |
| 106 | |
| 107 | static bool HasQueuedDeleteForPathLocked(const std::string& path) { |
| 108 | for (const auto& queued : g_workQueue) { |
no test coverage detected