We should print the buffer before recycling it

git-svn-id: https://hyracks.googlecode.com/svn/branches/fullstack_hyracks_result_distribution@2526 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks/hyracks-client/src/main/java/edu/uci/ics/hyracks/client/dataset/HyracksDataset.java b/hyracks/hyracks-client/src/main/java/edu/uci/ics/hyracks/client/dataset/HyracksDataset.java
index 0b153c3..a102d18 100644
--- a/hyracks/hyracks-client/src/main/java/edu/uci/ics/hyracks/client/dataset/HyracksDataset.java
+++ b/hyracks/hyracks-client/src/main/java/edu/uci/ics/hyracks/client/dataset/HyracksDataset.java
@@ -201,9 +201,10 @@
                         buffer = resultChannel.getNextBuffer();
 
                         if (buffer != null) {
-                            resultChannel.recycleBuffer(buffer);
                             // TODO(madhusudancs): This is a development time debugging statement and should be removed
                             printBuffer(buffer);
+
+                            resultChannel.recycleBuffer(buffer);
                         }
                     }