If tagObject is called to tag a pid and cid that is already tagged appropriately, instead of logging a warning - throw an exception (ex. FileAlreadyExistsInHashStoreException) - otherwise we could be accessing files unnecessarily and create confusion for clients who may not think that an action went through or not.
If
tagObjectis called to tag apidandcidthat is already tagged appropriately, instead of logging a warning - throw an exception (ex.FileAlreadyExistsInHashStoreException) - otherwise we could be accessing files unnecessarily and create confusion for clients who may not think that an action went through or not.