update
authorChristian Grothoff <christian@grothoff.org>
Fri, 15 Apr 2011 11:29:01 +0000 (11:29 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 15 Apr 2011 11:29:01 +0000 (11:29 +0000)
TODO
src/Makefile.am
src/include/gnunet_datastore_plugin.h
src/include/gnunet_datastore_service.h

diff --git a/TODO b/TODO
index 184cf33fbb5dc60131883c0eafd8e784ea8f675d..bd94dcfbec9db495ae30c47ca69f01f3975dbe78 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,7 +1,6 @@
 0.9.0pre3: [2'11]
 * DATASTORE:
-  - get_random seems to not just return a SINGLE value, but an entire
-    sequence of values... => migration queue overflows!
+  - postgres support currently not implemented
 * NAT/UPNP: [Milan / Ayush / MW]
   - [#1609] code clean up
   - testing
@@ -11,6 +10,8 @@
 * Transport:
   - UDP fragmentation
 * FS/CORE [CG]
+  - adjust service to deal with new datastore API (also crashes all over the place still,
+    likely related).
   - download of 100 MB file from 'leach' peer hung due to 
     failure of core-api to call back after a change preference request
     (structs indicate request was transmitted but reply never received?)
index 1b88b08d2460a829a001eaf567c194568014ec56..7b40eeb73508f125ed6e795fb092e456211312be 100644 (file)
@@ -8,7 +8,6 @@ if HAVE_OPENSSL
 endif
 endif
 if HAVE_EXPERIMENTAL
- DS_exp = datastore
  FS_exp = fs
 endif
 
@@ -22,7 +21,7 @@ SUBDIRS = \
   $(MONKEY_DIR) \
   peerinfo \
   datacache \
-  $(DS_exp) \
+  datastore \
   template \
   nat \
   transport \
index f499cb82786a767a02bacd1c5b4cd2a1439cc75f..a5c548146674c8af4cdab154721188bcfba2ce40 100644 (file)
@@ -325,9 +325,9 @@ struct GNUNET_DATASTORE_PluginFunctions
   /**
    * Function to get a random item with high replication score from
    * the database, lowering the item's replication score.  Returns a
-   * single, not expired, random item from those with the highest
-   * replication counters.  The item's replication counter is
-   * decremented by one IF it was positive before.
+   * single random item from those with the highest replication
+   * counters.  The item's replication counter is decremented by one
+   * IF it was positive before.
    */
   PluginRandomGet replication_get;
 
index e18d4ef12b5306854193de35be3552feaadd9300..53d04e5171a29ede3ab8b0ee4097bb006543b26e 100644 (file)
@@ -52,6 +52,10 @@ struct GNUNET_DATASTORE_QueueEntry;
  */
 struct GNUNET_DATASTORE_Handle;
 
+/**
+ * Maximum size of a value that can be stored in the datastore.
+ */
+#define GNUNET_DATASTORE_MAX_VALUE_SIZE 65536
 
 /**
  * Connect to the datastore service.