[mirrorbrain-commits] r8215 - /trunk/mod_mirrorbrain/mod_mirrorbrain.c

From: <poeml_at_mirrorbrain.org>
Date: Fri, 12 Nov 2010 23:15:15 -0000
Author: poeml
Date: Sat Nov 13 00:15:14 2010
New Revision: 8215

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8215&view=rev
Log:
mod_mirrorbrain:
- For generated torrent files, the needed hashes were retrieved twice from the
  database.

Modified:
    trunk/mod_mirrorbrain/mod_mirrorbrain.c

Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=8215&r1=8214&r2=8215&view=diff
==============================================================================
--- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original)
+++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Sat Nov 13 00:15:14 2010
_at_@ -2296,8 +2296,7 @@
 
 
 
-    if (rep != REDIRECT) {
-        /* any hashes to find in the database? */
+    if ((rep != REDIRECT) && (!hashbag)) {
         hashbag = hashbag_fill(r, dbd, filename);
         if (hashbag == NULL) {
             debugLog(r, cfg, "no hashes found in database");




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Fri Nov 12 2010 - 23:15:18 GMT

This archive was generated by hypermail 2.3.0 : Fri Nov 12 2010 - 23:17:07 GMT