return -ret;
RGWDataChangesLog *log = store->data_log;
- RGWDataChangesLog::LogMarker marker;
+ RGWDataChangesLog::LogMarker log_marker;
do {
list<rgw_data_change_log_entry> entries;
- ret = log->list_entries(start_time.to_real_time(), end_time.to_real_time(), max_entries - count, entries, marker, &truncated);
+ if (specified_shard_id) {
+ ret = log->list_entries(shard_id, start_time.to_real_time(), end_time.to_real_time(), max_entries - count, entries, marker, NULL, &truncated);
+ } else {
+ ret = log->list_entries(start_time.to_real_time(), end_time.to_real_time(), max_entries - count, entries, log_marker, &truncated);
+ }
if (ret < 0) {
cerr << "ERROR: list_bi_log_entries(): " << cpp_strerror(-ret) << std::endl;
return -ret;