Module: kamailio
Branch: master
Commit: ff647697724decb7440dfe3758857a06ab008979
URL:
https://github.com/kamailio/kamailio/commit/ff647697724decb7440dfe3758857a0…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-01-09T07:57:26Z
p_usrloc: fix default transaction isolation level (gh #3324)
---
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/ff647697724decb7440dfe3758857a0…
Patch:
https://github.com/kamailio/kamailio/commit/ff647697724decb7440dfe3758857a0…
---
diff --git a/src/modules/p_usrloc/doc/p_usrloc_admin.xml
b/src/modules/p_usrloc/doc/p_usrloc_admin.xml
index 6153dbcb00..37c84bf20b 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 bfdcc2f45c..800a71851a 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"