Module: kamailio
Branch: 5.5
Commit: 0622ff34dcdded39de06986e36f4758a8319e050
URL:
https://github.com/kamailio/kamailio/commit/0622ff34dcdded39de06986e36f4758…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-01-09T07:59:32Z
p_usrloc: fix default transaction isolation level (gh #3324)
(cherry picked from commit ff647697724decb7440dfe3758857a06ab008979)
(cherry picked from commit af7d9413385cd03da918777072e7246863849dbb)
---
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/0622ff34dcdded39de06986e36f4758…
Patch:
https://github.com/kamailio/kamailio/commit/0622ff34dcdded39de06986e36f4758…
---
diff --git a/src/modules/p_usrloc/doc/p_usrloc_admin.xml
b/src/modules/p_usrloc/doc/p_usrloc_admin.xml
index 80d4233eeb9..2d8c6eb9762 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 24368cf4705..6b0929f39bb 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"