Module: kamailio
Branch: 5.6
Commit: af7d9413385cd03da918777072e7246863849dbb
URL:
https://github.com/kamailio/kamailio/commit/af7d9413385cd03da918777072e7246…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-01-09T07:59:04Z
p_usrloc: fix default transaction isolation level (gh #3324)
(cherry picked from commit ff647697724decb7440dfe3758857a06ab008979)
---
Modified: src/modules/p_usrloc/doc/p_usrloc_admin.xml
Modified: src/modules/p_usrloc/p_usrloc_mod.h
---
Diff:
https://github.com/kamailio/kamailio/commit/af7d9413385cd03da918777072e7246…
Patch:
https://github.com/kamailio/kamailio/commit/af7d9413385cd03da918777072e7246…
---
diff --git a/src/modules/p_usrloc/doc/p_usrloc_admin.xml
b/src/modules/p_usrloc/doc/p_usrloc_admin.xml
index ca8faa827f9..cab0c3878af 100644
--- a/src/modules/p_usrloc/doc/p_usrloc_admin.xml
+++ b/src/modules/p_usrloc/doc/p_usrloc_admin.xml
@@ -472,14 +472,14 @@ modparam("p_usrloc", "db_use_transactions",
"0")
</para>
<para>
<emphasis>
- Default value is <quote>READ UNCOMMITED</quote>.
+ Default value is <quote>READ UNCOMMITTED</quote>.
</emphasis>
</para>
<example>
<title>Set <varname>db_transaction_level</varname>
parameter</title>
<programlisting format="linespecific">
...
-modparam("p_usrloc", "db_transaction_level", "READ
UNCOMMITED")
+modparam("p_usrloc", "db_transaction_level", "READ
UNCOMMITTED")
...
</programlisting>
</example>
diff --git a/src/modules/p_usrloc/p_usrloc_mod.h b/src/modules/p_usrloc/p_usrloc_mod.h
index bfdcc2f45ca..800a71851a8 100644
--- a/src/modules/p_usrloc/p_usrloc_mod.h
+++ b/src/modules/p_usrloc/p_usrloc_mod.h
@@ -61,7 +61,7 @@
#define DB_RETRY 10
#define DB_DEFAULT_POLICY 0
#define DEFAULT_FAILOVER_LEVEL 1
-#define DB_DEFAULT_TRANSACTION_LEVEL "READ UNCOMMITED"
+#define DB_DEFAULT_TRANSACTION_LEVEL "READ UNCOMMITTED"
#define DB_DEFAULT_CONNECTION_EXPIRES 300
#define DEFAULT_DB_TYPE "single"
#define DEFAULT_DOMAIN_DB "location=cluster,cfa=single"