From fcd0273933f3f53979749ba2e315043f1a6f6f31 Mon Sep 17 00:00:00 2001
From: Kyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Date: Mon, 1 Jul 2019 15:08:11 +0900
Subject: [PATCH 3/5] Adjust catcachebench for later patches

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

