do not store size
authorChristian Grothoff <christian@grothoff.org>
Thu, 26 Aug 2010 12:26:36 +0000 (12:26 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 26 Aug 2010 12:26:36 +0000 (12:26 +0000)
src/datastore/plugin_datastore_postgres.c

index 99be510221083cf34d2dee415e593527db321257..338b29821bd5566a079b0a4f33d342d27e70804f 100644 (file)
@@ -622,7 +622,7 @@ postgres_next_request_cont (void *next_cls,
   if ((1 != PQntuples (res)) ||
       (7 != PQnfields (res)) ||
       (sizeof (uint32_t) != PQfsize (res, 0)) ||
-      (sizeof (uint32_t) != PQfsize (res, 7)))
+      (sizeof (uint32_t) != PQfsize (res, 6)))
     {
       GNUNET_break (0);
       nrc->iter (nrc->iter_cls, 
@@ -637,8 +637,7 @@ postgres_next_request_cont (void *next_cls,
       (sizeof (uint32_t) != PQfsize (res, 1)) ||
       (sizeof (uint32_t) != PQfsize (res, 2)) ||
       (sizeof (uint64_t) != PQfsize (res, 3)) ||
-      (sizeof (GNUNET_HashCode) != PQgetlength (res, 0, 4)) ||
-      (size != PQgetlength (res, 0, 5)))
+      (sizeof (GNUNET_HashCode) != PQgetlength (res, 0, 4)) )
     {
       GNUNET_break (0);
       PQclear (res);