From 40608a5ff9c342a7d51ad433d36886e45c63d853 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 1 Oct 2015 10:52:45 -0400 Subject: [PATCH] rgw: period commit calls notify_zone Signed-off-by: Casey Bodley --- src/rgw/rgw_admin.cc | 2 +- src/rgw/rgw_rados.cc | 4 ++-- src/rgw/rgw_rest_realm.cc | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 01fd5ad3e5ef6..96cb8aef04ffa 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -1411,7 +1411,7 @@ static int commit_period(RGWRealm& realm, RGWPeriod& period, cerr << "Error updating period epoch: " << cpp_strerror(ret) << std::endl; return ret; } - // TODO: notify the zone for reconfiguration + realm.notify_zone(); return ret; } diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 12966d079e2f0..c3829d6d3a8e2 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1161,7 +1161,7 @@ int RGWPeriod::commit(RGWRealm& realm, const RGWPeriod& current_period) } ldout(cct, 4) << "Promoted to master zone and committed new period " << id << dendl; - // TODO: notify zone for dynamic reconfiguration + realm.notify_zone(); return 0; } // period must be based on predecessor's current epoch @@ -1188,7 +1188,7 @@ int RGWPeriod::commit(RGWRealm& realm, const RGWPeriod& current_period) } ldout(cct, 4) << "Committed new epoch " << epoch << " for period " << id << dendl; - // TODO: notify zone for dynamic reconfiguration + realm.notify_zone(); return 0; } diff --git a/src/rgw/rgw_rest_realm.cc b/src/rgw/rgw_rest_realm.cc index 933f53a10566d..bc51d14804a44 100644 --- a/src/rgw/rgw_rest_realm.cc +++ b/src/rgw/rgw_rest_realm.cc @@ -148,7 +148,7 @@ void RGWOp_Period_Post::execute() ldout(cct, 4) << "current period " << current_period.get_id() << " is period " << period.get_id() << "'s predecessor, " "updating current period and notifying zone" << dendl; - // TODO: notify zone for dynamic reconfiguration + realm.notify_zone(); return; } @@ -175,7 +175,7 @@ void RGWOp_Period_Post::execute() ldout(cct, 4) << "period epoch " << period.get_epoch() << " is newer than current epoch " << current_period.get_epoch() << ", updating latest epoch and notifying zone" << dendl; - // TODO: notify zone for dynamic reconfiguration + realm.notify_zone(); } class RGWHandler_Period : public RGWHandler_Auth_S3 { -- 2.39.5