mirror of
https://github.com/ceph/ceph
synced 2024-12-30 15:33:31 +00:00
rgw: relax marker requirements for log apis
Don't require start-time, start-marker. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
b21a41ab58
commit
c4140303b7
@ -144,9 +144,7 @@ void RGWOp_MDLog_Delete::execute() {
|
||||
http_ret = -EINVAL;
|
||||
return;
|
||||
}
|
||||
if ((st.empty() || et.empty()) && (start_marker.empty() || end_marker.empty())) {
|
||||
/* need to have at least one pair, either start-time && end-time, or start-marker && end-marker
|
||||
* */
|
||||
if (et.empty() && end_marker.empty()) { /* bounding end */
|
||||
http_ret = -EINVAL;
|
||||
return;
|
||||
}
|
||||
@ -332,9 +330,8 @@ void RGWOp_BILog_Delete::execute() {
|
||||
|
||||
http_ret = 0;
|
||||
if ((bucket_name.empty() && bucket_instance.empty()) ||
|
||||
start_marker.empty() ||
|
||||
end_marker.empty()) {
|
||||
dout(5) << "ERROR: one of bucket and bucket instance, and also start-marker, end-marker are mandatory" << dendl;
|
||||
dout(5) << "ERROR: one of bucket and bucket instance, and also end-marker is mandatory" << dendl;
|
||||
http_ret = -EINVAL;
|
||||
return;
|
||||
}
|
||||
@ -531,9 +528,7 @@ void RGWOp_DATALog_Delete::execute() {
|
||||
http_ret = -EINVAL;
|
||||
return;
|
||||
}
|
||||
if ((st.empty() || et.empty()) && (start_marker.empty() || end_marker.empty())) {
|
||||
/* need to have at least one pair, either start-time && end-time, or start-marker && end-marker
|
||||
* */
|
||||
if (et.empty() && end_marker.empty()) { /* bounding end */
|
||||
http_ret = -EINVAL;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user