core/transaction: use hashmap_remove_value() to make not remove job with same ID
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 Apr 2023 04:59:34 +0000 (13:59 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 Apr 2023 15:35:54 +0000 (00:35 +0900)
commitc49dfd8911f49bf383ad7ac1d18be8a4ab39ab09
treebd5e683f86212db35a2c919cb5bd13e55c4e93c0
parentfa84c1ce00eb07f69a200322fc513fff226e444b
core/transaction: use hashmap_remove_value() to make not remove job with same ID

When we fail to deserialize job ID, or the current_job_id is overflowed,
we may have jobs with the same ID.
This is paranoia, and just for safety.
Note, we already use hashmap_remove_value() in job_uninstall().
src/core/transaction.c