Deprecate piggyback function with regular ints
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 7 Nov 2013 10:12:24 +0000 (11:12 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 7 Nov 2013 10:12:24 +0000 (11:12 +0100)
It may be harmful for large hit counts

include/metaproxy/util.hpp

index 478e7a4..a7a9c98 100644 (file)
@@ -106,13 +106,16 @@ namespace metaproxy_1 {
 
         Z_RecordComposition *piggyback_to_RecordComposition(
             ODR odr, Odr_int result_set_size, Z_SearchRequest *sreq);
+
         void piggyback(int smallSetUpperBound,
                        int largeSetLowerBound,
                        int mediumSetPresentNumber,
                        int result_set_size,
-                       int &number_to_present);
-
+                       int &number_to_present)
+#ifdef __GNUC__
+             __attribute__ ((deprecated))
+#endif
+            ;
         void piggyback_sr(Z_SearchRequest *sreq,
                           Odr_int result_set_size,
                           Odr_int &number_to_present,