Fixes: #7168
An object put may race with the same object's delete. In this case just
ignore the error, same behavior as if object was created and then
removed.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit
5c24a7ea905587fd4077e3b0cfc0f5ad2b178c29)
/* we lost in a race, object was already overwritten, we
* should treat it as a success
*/
- if (r == -ECANCELED)
+ if (r == -ECANCELED || r == -ENOENT)
r = 0;
return r;
}