pending datalog entries need to be issued before shutdown. a race with
sshutdown is especially easy to reproduce with radosgw-admin, ie for
'bucket sync enable/disable'
Signed-off-by: Casey Bodley <cbodley@redhat.com>
}
void *RGWDataChangesLog::ChangesRenewThread::entry() {
- do {
+ for (;;) {
dout(2) << "RGWDataChangesLog::ChangesRenewThread: start" << dendl;
int r = log->renew_entries();
if (r < 0) {
int interval = cct->_conf->rgw_data_log_window * 3 / 4;
std::unique_lock locker{lock};
cond.wait_for(locker, std::chrono::seconds(interval));
- } while (!log->going_down());
+ }
return NULL;
}