2
0
Jan Janak 17 жил өмнө
parent
commit
4367ae5803

+ 3 - 2
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:

+ 0 - 9
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}
 };