Changes of Revision 10

osmo-hlr_1.9.0.dsc -> osmo-hlr_1.9.1.dsc Changed
x
 
1
@@ -2,7 +2,7 @@
2
 Source: osmo-hlr
3
 Binary: osmo-hlr, osmo-hlr-dbg, libosmo-gsup-client0, libosmo-gsup-client-dev, libosmo-mslookup1, libosmo-mslookup-dev, osmo-mslookup-utils, osmo-hlr-doc
4
 Architecture: any all
5
-Version: 1.9.0
6
+Version: 1.9.1
7
 Maintainer: Osmocom team <openbsc@lists.osmocom.org>
8
 Homepage: https://projects.osmocom.org/projects/osmo-hlr
9
 Standards-Version: 3.9.6
10
@@ -19,8 +19,8 @@
11
  osmo-hlr-doc deb doc optional arch=all
12
  osmo-mslookup-utils deb utils optional arch=any
13
 Checksums-Sha1:
14
- 0c08465093e59a66772df776ce31aa14c26de4c7 178248 osmo-hlr_1.9.0.tar.xz
15
+ f056725526af6cbb3fee2b362206c040e0753024 178408 osmo-hlr_1.9.1.tar.xz
16
 Checksums-Sha256:
17
- 6f38d9f59f81e41b0125daa6d49be461b3a60fcdd4cfd091e70559cf46a82e74 178248 osmo-hlr_1.9.0.tar.xz
18
+ 9d882c417b3b2be667a97eb3b751142a2123c01ec69f1fca88e5aa504a6ad8e2 178408 osmo-hlr_1.9.1.tar.xz
19
 Files:
20
- d96574b43521b9c5138b6ce6c0613d91 178248 osmo-hlr_1.9.0.tar.xz
21
+ 595f2cd8974666d97a2800ead7f72f39 178408 osmo-hlr_1.9.1.tar.xz
22
osmo-hlr_1.9.0.tar.xz/.tarball-version -> osmo-hlr_1.9.1.tar.xz/.tarball-version Changed
4
 
1
@@ -1 +1 @@
2
-1.9.0
3
+1.9.1
4
osmo-hlr_1.9.0.tar.xz/debian/changelog -> osmo-hlr_1.9.1.tar.xz/debian/changelog Changed
15
 
1
@@ -1,3 +1,13 @@
2
+osmo-hlr (1.9.1) unstable; urgency=medium
3
+
4
+   Pau Espin Pedrol 
5
+  * Drop use of deprecated vty is_config_node() cb
6
+
7
+   Oliver Smith 
8
+  * db: flush after changing schema version
9
+
10
+ -- Oliver Smith <osmith@sysmocom.de>  Wed, 02 Apr 2025 15:12:35 +0200
11
+
12
 osmo-hlr (1.9.0) unstable; urgency=medium
13
 
14
    Vadim Yanitskiy 
15
osmo-hlr_1.9.0.tar.xz/include/osmocom/hlr/hlr_vty.h -> osmo-hlr_1.9.1.tar.xz/include/osmocom/hlr/hlr_vty.h Changed
9
 
1
@@ -48,7 +48,6 @@
2
 #define A38_COMP128_KEY_LEN    16
3
 #define MILENAGE_KEY_LEN   16
4
 
5
-int hlr_vty_is_config_node(struct vty *vty, int node);
6
 int hlr_vty_go_parent(struct vty *vty);
7
 void hlr_vty_init(void *hlr_ctx);
8
 void dgsm_vty_init(void);
9
osmo-hlr_1.9.0.tar.xz/src/db.c -> osmo-hlr_1.9.1.tar.xz/src/db.c Changed
38
 
1
@@ -595,6 +595,7 @@
2
    int rc;
3
    bool has_sqlite_config_sqllog = false;
4
    int version;
5
+   bool version_changed = false;
6
 
7
    LOGP(DDB, LOGL_NOTICE, "using database: %s\n", fname);
8
    LOGP(DDB, LOGL_INFO, "Compiled against SQLite3 lib version %s\n", SQLITE_VERSION);
9
@@ -672,6 +673,7 @@
10
            goto out_free;
11
        }
12
        version = CURRENT_SCHEMA_VERSION;
13
+       version_changed = true;
14
    }
15
 
16
    LOGP(DDB, LOGL_NOTICE, "Database '%s' has HLR DB schema version %d\n", dbc->fname, version);
17
@@ -686,6 +688,7 @@
18
        }
19
        LOGP(DDB, LOGL_NOTICE, "Database '%s' has been upgraded to HLR DB schema version %d\n",
20
             dbc->fname, version+1);
21
+       version_changed = true;
22
    }
23
 
24
    if (version != CURRENT_SCHEMA_VERSION) {
25
@@ -702,6 +705,12 @@
26
        goto out_free;
27
    }
28
 
29
+   /* Flush the cache after changing the version, to make the scenario
30
+    * less likely that after an unclean shutdown the DB gets restored
31
+    * with the right table layout but wrong version (SYS#7394). */
32
+   if (version_changed)
33
+       sqlite3_db_cacheflush(dbc->db);
34
+
35
    /* prepare all SQL statements */
36
    for (i = 0; i < ARRAY_SIZE(dbc->stmt); i++) {
37
        rc = sqlite3_prepare_v2(dbc->db, stmt_sqli, -1,
38
osmo-hlr_1.9.0.tar.xz/src/hlr.c -> osmo-hlr_1.9.1.tar.xz/src/hlr.c Changed
9
 
1
@@ -754,7 +754,6 @@
2
    .name       = "OsmoHLR",
3
    .version    = PACKAGE_VERSION,
4
    .copyright  = vlr_copyright,
5
-   .is_config_node = hlr_vty_is_config_node,
6
    .go_parent_cb   = hlr_vty_go_parent,
7
 };
8
 
9
osmo-hlr_1.9.0.tar.xz/src/hlr_vty.c -> osmo-hlr_1.9.1.tar.xz/src/hlr_vty.c Changed
20
 
1
@@ -881,18 +881,6 @@
2
    return vty->node;
3
 }
4
 
5
-int hlr_vty_is_config_node(struct vty *vty, int node)
6
-{
7
-   switch (node) {
8
-   /* add items that are not config */
9
-   case CONFIG_NODE:
10
-       return 0;
11
-
12
-   default:
13
-       return 1;
14
-   }
15
-}
16
-
17
 void hlr_vty_init(void *hlr_ctx)
18
 {
19
    cfg_reject_cause_cmd.string =
20