[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4888 - GNUnet/src/applications/sqstore_sqlite
From: |
gnunet |
Subject: |
[GNUnet-SVN] r4888 - GNUnet/src/applications/sqstore_sqlite |
Date: |
Fri, 1 Jun 2007 23:37:45 -0600 (MDT) |
Author: grothoff
Date: 2007-06-01 23:37:45 -0600 (Fri, 01 Jun 2007)
New Revision: 4888
Modified:
GNUnet/src/applications/sqstore_sqlite/sqlite.c
Log:
prioritize replies by expiration time
Modified: GNUnet/src/applications/sqstore_sqlite/sqlite.c
===================================================================
--- GNUnet/src/applications/sqstore_sqlite/sqlite.c 2007-06-02 02:20:57 UTC
(rev 4887)
+++ GNUnet/src/applications/sqstore_sqlite/sqlite.c 2007-06-02 05:37:45 UTC
(rev 4888)
@@ -921,7 +921,7 @@
void * closure) {
int ret, count = 0;
sqlite3_stmt *stmt;
- char scratch[97];
+ char scratch[256];
int bind = 1;
Datastore_Datum *datum;
sqlite3 * dbh;
@@ -959,6 +959,7 @@
if (key)
strcat(scratch, "hash = :2");
}
+ strcat(scratch, " ORDER BY expire DESC");
if (sq_prepare(dbh,
scratch,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4888 - GNUnet/src/applications/sqstore_sqlite,
gnunet <=