Browse code

htable: docs for event_callback_mode parameter

Daniel-Constantin Mierla authored on 03/05/2018 19:19:59
Showing 1 changed files
... ...
@@ -701,6 +701,30 @@ function ksr_htable_event(evname)
701 701
 	return 1;
702 702
 end
703 703
 ...
704
+</programlisting>
705
+		</example>
706
+	</section>
707
+	<section id="htable.p.event_callback_mode">
708
+		<title><varname>event_callback_mode</varname> (int)</title>
709
+		<para>
710
+			Control when event_route[htable:init] is executed: 0 - after all
711
+			modules were initialized; 1 - in first worker process.
712
+		</para>
713
+		<para>
714
+			Set it to 1 if used in a KEMI script or when needing to use database
715
+			(e.g., via sqlops) inside event_route[htable:init].
716
+		</para>
717
+		<para>
718
+		<emphasis>
719
+			Default value is 0.
720
+		</emphasis>
721
+		</para>
722
+		<example>
723
+		<title>Set <varname>event_callback_mode</varname> parameter</title>
724
+		<programlisting format="linespecific">
725
+...
726
+modparam("htable", "event_callback_mode", 1)
727
+...
704 728
 </programlisting>
705 729
 		</example>
706 730
 	</section>