From 1be1a231bf51e92d9dd443282f9666ab7a0b4ca7 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 7 Nov 2013 11:12:24 +0100 Subject: [PATCH] Deprecate piggyback function with regular ints It may be harmful for large hit counts --- include/metaproxy/util.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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, -- 1.7.10.4