Skip to content

Commit

Permalink
usrloc: partion column name can be set via modparam
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindkolbu authored and miconda committed Dec 15, 2017
1 parent d53920e commit b933b2a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/modules/usrloc/doc/usrloc_admin.xml
Expand Up @@ -516,6 +516,26 @@ modparam("usrloc", "keepalive_column", "kalive")
</example>
</section>

<section id="usrloc.p.partition_column">
<title><varname>partition_column</varname> (string)</title>
<para>
Name of database table column containing the value for partition id.
</para>
<para>
<emphasis>
Default value is <quote>partition</quote>.
</emphasis>
</para>
<example>
<title>Set <varname>partitioncolumn</varname> parameter</title>
<programlisting format="linespecific">
...
modparam("usrloc", "partition_column", "part")
...
</programlisting>
</example>
</section>

<section id="usrloc.p.use_domain">
<title><varname>use_domain</varname> (integer)</title>
<para>
Expand Down
1 change: 1 addition & 0 deletions src/modules/usrloc/usrloc_mod.c
Expand Up @@ -218,6 +218,7 @@ static param_export_t params[] = {
{"server_id_column", PARAM_STR, &srv_id_col },
{"connection_id_column",PARAM_STR, &con_id_col },
{"keepalive_column", PARAM_STR, &keepalive_col },
{"partition_column", PARAM_STR, &partition_col },
{"matching_mode", INT_PARAM, &matching_mode },
{"cseq_delay", INT_PARAM, &cseq_delay },
{"fetch_rows", INT_PARAM, &ul_fetch_rows },
Expand Down

0 comments on commit b933b2a

Please sign in to comment.