| Directory: | cvmfs/ |
|---|---|
| File: | cvmfs/ingestion/task_register.cc |
| Date: | 2025-12-14 02:35:46 |
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 21 | 21 | 100.0% |
| Branches: | 20 | 42 | 47.6% |
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /** | ||
| 2 | * This file is part of the CernVM File System. | ||
| 3 | */ | ||
| 4 | |||
| 5 | |||
| 6 | #include "task_register.h" | ||
| 7 | |||
| 8 | #include <cassert> | ||
| 9 | |||
| 10 | #include "util/logging.h" | ||
| 11 | |||
| 12 | 11752797 | void TaskRegister::Process(FileItem *file_item) { | |
| 13 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11752797 times.
|
11752797 | assert(file_item != NULL); |
| 14 |
1/2✗ Branch 2 not taken.
✓ Branch 3 taken 11752562 times.
|
11752797 | assert(!file_item->path().empty()); |
| 15 |
3/4✓ Branch 1 taken 1498 times.
✓ Branch 2 taken 11750923 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 1498 times.
|
11752562 | assert(!file_item->has_legacy_bulk_chunk() |
| 16 | || !file_item->bulk_hash().IsNull()); | ||
| 17 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 11752703 times.
|
11752421 | assert(file_item->nchunks_in_fly() == 0); |
| 18 |
4/8✓ Branch 1 taken 11752374 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 11751857 times.
✓ Branch 4 taken 517 times.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✓ Branch 8 taken 11751857 times.
|
11752703 | assert((file_item->GetNumChunks() > 1) || !file_item->bulk_hash().IsNull()); |
| 19 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 11752327 times.
|
11752374 | assert(file_item->GetNumChunks() != 1); |
| 20 |
1/2✗ Branch 2 not taken.
✓ Branch 3 taken 11752139 times.
|
11752327 | assert(file_item->hash_suffix() == file_item->bulk_hash().suffix); |
| 21 |
1/2✗ Branch 2 not taken.
✓ Branch 3 taken 11752092 times.
|
11752139 | assert(file_item->bulk_hash().algorithm == file_item->hash_algorithm()); |
| 22 | |||
| 23 |
1/6✓ Branch 3 taken 11752985 times.
✗ Branch 4 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
|
23506064 | LogCvmfs(kLogSpooler, kLogVerboseMsg, |
| 24 | "File '%s' processed (bulk hash: %s suffix: %c)", | ||
| 25 |
2/4✓ Branch 2 taken 11753032 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 11753032 times.
✗ Branch 6 not taken.
|
35258109 | file_item->path().c_str(), file_item->bulk_hash().ToString().c_str(), |
| 26 | 11752092 | file_item->hash_suffix()); | |
| 27 | |||
| 28 | 11752985 | tube_ctr_inflight_pre_->PopFront(); | |
| 29 | |||
| 30 |
1/2✓ Branch 1 taken 11750024 times.
✗ Branch 2 not taken.
|
11751387 | NotifyListeners( |
| 31 |
1/2✓ Branch 2 taken 11751387 times.
✗ Branch 3 not taken.
|
35255571 | upload::SpoolerResult(0, |
| 32 |
1/2✓ Branch 1 taken 11752656 times.
✗ Branch 2 not taken.
|
23497745 | file_item->path(), |
| 33 | 11752421 | file_item->bulk_hash(), | |
| 34 | 23498403 | FileChunkList(*file_item->GetChunksPtr()), | |
| 35 | file_item->compression_algorithm())); | ||
| 36 | |||
| 37 |
1/2✓ Branch 0 taken 11747392 times.
✗ Branch 1 not taken.
|
11747298 | delete file_item; |
| 38 | |||
| 39 | 11752750 | tube_ctr_inflight_post_->PopFront(); | |
| 40 | 11751387 | } | |
| 41 |