updated Daemon BPQ code for frags
authoraidan
Mon, 15 Aug 2011 14:06:57 +0100
changeset 38 e51218da06a2
parent 37 6023dbd1cef5
child 39 6c24826aaf8e
updated Daemon BPQ code for frags
servlib/bundling/BundleDaemon.cc
--- a/servlib/bundling/BundleDaemon.cc	Mon Aug 15 13:42:11 2011 +0100
+++ b/servlib/bundling/BundleDaemon.cc	Mon Aug 15 14:06:57 2011 +0100
@@ -922,9 +922,14 @@
 
     // If the even source is PEER or STORE,
     // try to handle a BPQ block
-    if ( event->source_ == EVENTSRC_PEER || 
-         event->source_ == EVENTSRC_STORE ) {
-        handle_bpq_block(bundle, event);
+    if ( event->source_ == EVENTSRC_PEER  || 
+         event->source_ == EVENTSRC_STORE ||
+         event->source_ == EVENTSRC_FRAGMENTATION) {
+
+        // TODO: change this to allow fragment responses be sent
+        if ( ! bundle->is_fragment() ) {
+            handle_bpq_block(bundle, event);
+        }
     }
 
     // If the bundle contains a BPQ query that was successfully answered