Subject: [PATCH 3/5] Adjust catcachebench for later patches

From: Kyotaro Horiguchi <[email-masked]>
Date: Mon, 1 Jul 2019 15:08:11 +0900

Make the benchmark use SetCatCacheClock, which is being introduced by
the next patch. This temprarily breaks consistency until the next
patch is applied.
---
 contrib/catcachebench/catcachebench.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/contrib/catcachebench/catcachebench.c b/contrib/catcachebench/catcachebench.c
index 0cebbbde4f..63a7400463 100644
--- a/contrib/catcachebench/catcachebench.c
+++ b/contrib/catcachebench/catcachebench.c
@@ -116,9 +116,7 @@ catcachebench2(void)
 		 */
 		if (--ct < 0)
 		{
-			// We don't have it yet.
-			//SetCatCacheClock(GetCurrentTimestamp());
-			GetCurrentTimestamp();
+			SetCatCacheClock(GetCurrentTimestamp());
 			ct = clock_step;
 		}
 		for (a = 0 ; a < natts ; a++)
@@ -168,9 +166,7 @@ catcachebench3(void)
 			 */
 			if (--ct < 0)
 			{
-				// We don't have it yet.
-				//SetCatCacheClock(GetCurrentTimestamp());
-				GetCurrentTimestamp();
+				SetCatCacheClock(GetCurrentTimestamp());
 				ct = clock_step;
 			}
 			for (a = 0 ; a < natts ; a++)
-- 
2.16.3

----Next_Part(Mon_Jul_01_16_02_59_2019_106)--
Content-Type: Text/X-Patch; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="v18-0004-Catcache-pruning-feature.patch"