Browse Source

htable: set RET_ARRAY flag for rpc commands returning more than one value

- fix failure in xmlrpc parsing
Elena-Ramona Modroiu 11 years ago
parent
commit
67fa31e3f0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      modules/htable/htable.c

+ 3 - 3
modules/htable/htable.c

@@ -1124,14 +1124,14 @@ static void htable_rpc_reload(rpc_t* rpc, void* c)
 }
 
 rpc_export_t htable_rpc[] = {
-	{"htable.dump", htable_rpc_dump, htable_dump_doc, 0},
+	{"htable.dump", htable_rpc_dump, htable_dump_doc, RET_ARRAY},
 	{"htable.delete", htable_rpc_delete, htable_delete_doc, 0},
 	{"htable.get", htable_rpc_get, htable_get_doc, 0},
 	{"htable.sets", htable_rpc_sets, htable_sets_doc, 0},
 	{"htable.seti", htable_rpc_seti, htable_seti_doc, 0},
-	{"htable.listTables", htable_rpc_list, htable_list_doc, 0},
+	{"htable.listTables", htable_rpc_list, htable_list_doc, RET_ARRAY},
 	{"htable.reload", htable_rpc_reload, htable_reload_doc, 0},
-	{"htable.stats", htable_rpc_stats, htable_stats_doc, 0},
+	{"htable.stats", htable_rpc_stats, htable_stats_doc, RET_ARRAY},
 	{0, 0, 0, 0}
 };