{ ERR_NO_SUCH_PUBLIC_ACCESS_BLOCK_CONFIGURATION, {404, "NoSuchPublicAccessBlockConfiguration"}},
{ ERR_ACCOUNT_EXISTS, {409, "AccountAlreadyExists"}},
{ ERR_RESTORE_ALREADY_IN_PROGRESS, {409, "RestoreAlreadyInProgress"}},
- { ECANCELED, {409, "ConcurrentModification"}},
+ { ERR_CONCURRENT_MODIFICATION, {409, "ConcurrentModification"}},
{ EDQUOT, {507, "InsufficientCapacity"}},
{ ENOSPC, {507, "InsufficientCapacity"}},
{ ERR_ACLS_NOT_SUPPORTED, {400, "AccessControlListNotSupported"}},
#define ERR_BUSY_RESHARDING 2300 // also in cls_rgw_types.h, don't change!
#define ERR_NO_SUCH_ENTITY 2301
#define ERR_LIMIT_EXCEEDED 2302
+#define ERR_CONCURRENT_MODIFICATION 2303
// STS Errors
#define ERR_PACKED_POLICY_TOO_LARGE 2400
r = f();
}
}
+ if (r == -ECANCELED) {
+ // map ECANCELED to 409 ConcurrentModification
+ return -ERR_CONCURRENT_MODIFICATION;
+ }
return r;
}
r = f();
}
}
+ if (r == -ECANCELED) {
+ // map ECANCELED to 409 ConcurrentModification
+ return -ERR_CONCURRENT_MODIFICATION;
+ }
return r;
}
r = f();
}
}
+ if (r == -ECANCELED) {
+ // map ECANCELED to 409 ConcurrentModification
+ return -ERR_CONCURRENT_MODIFICATION;
+ }
return r;
}