Skip to content

Commit

Permalink
rgw: only log metadata on metadata master zone
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/20244

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit b8272f3)
  • Loading branch information
cbodley authored and smithfarm committed Jul 6, 2017
1 parent b3768a2 commit 2ea75d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_rados.h
Original file line number Diff line number Diff line change
Expand Up @@ -3175,7 +3175,7 @@ class RGWRados
}

bool need_to_log_metadata() {
return get_zone().log_meta;
return is_meta_master() && get_zone().log_meta;
}

librados::Rados* get_rados_handle();
Expand Down

0 comments on commit 2ea75d1

Please sign in to comment.