[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r20686 - in gnunet/src: datacache datastore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r20686 - in gnunet/src: datacache datastore |
Date: |
Thu, 22 Mar 2012 19:12:39 +0100 |
Author: grothoff
Date: 2012-03-22 19:12:39 +0100 (Thu, 22 Mar 2012)
New Revision: 20686
Modified:
gnunet/src/datacache/plugin_datacache_postgres.c
gnunet/src/datastore/plugin_datastore_postgres.c
Log:
-docs
Modified: gnunet/src/datacache/plugin_datacache_postgres.c
===================================================================
--- gnunet/src/datacache/plugin_datacache_postgres.c 2012-03-22 18:06:14 UTC
(rev 20685)
+++ gnunet/src/datacache/plugin_datacache_postgres.c 2012-03-22 18:12:39 UTC
(rev 20686)
@@ -87,7 +87,10 @@
/**
* Run simple SQL statement (without results).
- */
+ *
+ * @param plugin global context
+ * @param sql statement to run
+ * @param line code line for error reporting */
static int
pq_exec (struct Plugin *plugin, const char *sql, int line)
{
@@ -104,6 +107,13 @@
/**
* Prepare SQL statement.
+ *
+ * @param plugin global context
+ * @param name name for the prepared SQL statement
+ * @param sql SQL code to prepare
+ * @param nparams number of parameters in sql
+ * @param line code line for error reporting
+ * @return GNUNET_OK on success
*/
static int
pq_prepare (struct Plugin *plugin, const char *name, const char *sql,
@@ -122,6 +132,8 @@
/**
* @brief Get a database handle
+ *
+ * @param plugin global context
* @return GNUNET_OK on success, GNUNET_SYSERR on error
*/
static int
@@ -185,7 +197,6 @@
}
}
PQclear (ret);
-#if 1
ret =
PQexec (plugin->dbh,
"ALTER TABLE gn090dc ALTER value SET STORAGE EXTERNAL");
@@ -208,7 +219,6 @@
return GNUNET_SYSERR;
}
PQclear (ret);
-#endif
if ((GNUNET_OK !=
pq_prepare (plugin, "getkt",
"SELECT discard_time,type,value FROM gn090dc "
@@ -241,6 +251,8 @@
* Delete the row identified by the given rowid (qid
* in postgres).
*
+ * @param plugin global context
+ * @param rowid which row to delete
* @return GNUNET_OK on success
*/
static int
Modified: gnunet/src/datastore/plugin_datastore_postgres.c
===================================================================
--- gnunet/src/datastore/plugin_datastore_postgres.c 2012-03-22 18:06:14 UTC
(rev 20685)
+++ gnunet/src/datastore/plugin_datastore_postgres.c 2012-03-22 18:12:39 UTC
(rev 20686)
@@ -339,7 +339,7 @@
* @return GNUNET_OK on success
*/
static int
-delete_by_rowid (struct Plugin *plugin, unsigned int rowid)
+delete_by_rowid (struct Plugin *plugin, uint32_t rowid)
{
uint32_t browid;
const char *paramValues[] = { (const char *) &browid };
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r20686 - in gnunet/src: datacache datastore,
gnunet <=