marsadm: show replication infos only on secondaries

This commit is contained in:
Thomas Schoebel-Theuer 2015-03-17 17:02:09 +01:00
parent c481f75cb8
commit 8d60cb304c
1 changed files with 7 additions and 5 deletions

View File

@ -3464,11 +3464,13 @@ my %complex_macros =
. "%if{%>{%-{%disk-size{}}{%resource-size{}}}{%{threshold}}}{"
. " Hint: you are wasting %human-numbers{}{ }{ }{%-{%disk-size{}}{%resource-size{}}} on disk %get-disk{}\n"
. "}"
. "%if{%and{%is-attach{}}{%not{%sync-reached{}}}}{"
. "%include{syncinfo}"
. "}"
. "%if{%and{%is-attach{}}{%not{%work-reached{}}}}{"
. "%include{replinfo}"
. "%if{%and{%not{%is-primary{}}}{%is-attach{}}}{"
. "%if{%not{%sync-reached{}}}{"
. "%include{syncinfo}"
. "}"
. "%if{%not{%work-reached{}}}{"
. "%include{replinfo}"
. "}"
. "}"
. "%call{resource-errors}"
. "}",