[SR-Dev] git:janakj/flatstore: - minor bug fixes

Jan Janak jan at iptel.org
Sun Feb 15 18:56:46 CET 2009


Module: sip-router
Branch: janakj/flatstore
Commit: 4367ae5803d35800f7a7661ae69d99b4f7236367
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4367ae5803d35800f7a7661ae69d99b4f7236367

Author: Jan Janak <jan at iptel.org>
Committer: Jan Janak <jan at iptel.org>
Date:   Tue May 27 11:56:12 2008 +0000

- minor bug fixes

---

 modules/db_flatstore/flat_con.c      |    5 +++--
 modules/db_flatstore/flatstore_mod.c |    9 ---------
 2 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/modules/db_flatstore/flat_con.c b/modules/db_flatstore/flat_con.c
index 2e6d1d2..450b66b 100644
--- a/modules/db_flatstore/flat_con.c
+++ b/modules/db_flatstore/flat_con.c
@@ -211,7 +211,7 @@ static char* get_filename(str* dir, str* name)
     *p++ = '/';
 
     memcpy(p, name->s, name->len);
-    *p += name->len;
+    p += name->len;
 
     *p++ = '_';
 
@@ -281,7 +281,8 @@ int flat_open_table(int* idx, db_con_t* con, str* name)
 	} else {
 		*idx = i;
 	}
-	
+	DBG("flatstore: Handle to file '%s' opened successfully\n", 
+		fcon->file[*idx].filename);
 	return 0;
 
  no_mem:
diff --git a/modules/db_flatstore/flatstore_mod.c b/modules/db_flatstore/flatstore_mod.c
index 7d8a288..8a27740 100644
--- a/modules/db_flatstore/flatstore_mod.c
+++ b/modules/db_flatstore/flatstore_mod.c
@@ -105,18 +105,9 @@ time_t flat_local_timestamp;
 
 /* Flatstore database module interface */
 static cmd_export_t cmds[] = {
-	{"db_ctx",    (cmd_function)NULL,     0, 0, 0},
 	{"db_con",    (cmd_function)flat_con, 0, 0, 0},
-	{"db_uri",    (cmd_function)NULL,     0, 0, 0},
 	{"db_cmd",    (cmd_function)flat_cmd, 0, 0, 0},
 	{"db_put",    (cmd_function)flat_put, 0, 0, 0},
-	{"db_del",    (cmd_function)NULL,     0, 0, 0},
-	{"db_get",    (cmd_function)NULL,     0, 0, 0},
-	{"db_upd",    (cmd_function)NULL,     0, 0, 0},
-	{"db_sql",    (cmd_function)NULL,     0, 0, 0},
-	{"db_fld",    (cmd_function)NULL,     0, 0, 0},
-	{"db_setopt", (cmd_function)NULL,     0, 0, 0},
-	{"db_getopt", (cmd_function)NULL,     0, 0, 0},
 	{0, 0, 0, 0, 0}
 };
 




More information about the sr-dev mailing list