From: Adam Dickmeiss Date: Thu, 7 Nov 2013 10:12:24 +0000 (+0100) Subject: Deprecate piggyback function with regular ints X-Git-Tag: v1.4.2~6 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=1be1a231bf51e92d9dd443282f9666ab7a0b4ca7;p=metaproxy-moved-to-github.git Deprecate piggyback function with regular ints It may be harmful for large hit counts --- diff --git a/include/metaproxy/util.hpp b/include/metaproxy/util.hpp index 478e7a4..a7a9c98 100644 --- a/include/metaproxy/util.hpp +++ b/include/metaproxy/util.hpp @@ -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,