Doubts about redundant { ...} section
Hi, Anyone know if is possible to retrieve a rcode from redundant section? e.g: redundant { sql_accounting detail_buffered_queue } if (rcode != ok) { linenlog-problems-with-redundant-acct } -- Jorge Pereira
e,g2: redundant { group { sql_accounting detail_buffered_queue } fail } if (rcode != ok) { if_failed_report_log } -- Jorge Pereira On Tue, Dec 1, 2015 at 7:22 PM, Jorge Pereira <jpereiran@gmail.com> wrote:
Hi,
Anyone know if is possible to retrieve a rcode from redundant section?
e.g:
redundant { sql_accounting detail_buffered_queue }
if (rcode != ok) { linenlog-problems-with-redundant-acct }
-- Jorge Pereira
On Dec 1, 2015, at 4:22 PM, Jorge Pereira <jpereiran@gmail.com> wrote:
Anyone know if is possible to retrieve a rcode from redundant section?
Yes.
e.g:
redundant { sql_accounting detail_buffered_queue }
if (rcode != ok) { linenlog-problems-with-redundant-acct }
You just do: if (!ok) { ... } The "return code" from a redundant section is no different than the return code from a module. Alan DeKok.
participants (2)
-
Alan DeKok -
Jorge Pereira