From e8f509761fbaceda98ff7416a54bdf8ee20ecf74 Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Thu, 29 Oct 2020 14:24:44 +0000 Subject: [PATCH] change the demo code --- src/util/inc/tref.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/inc/tref.h b/src/util/inc/tref.h index 1ac7cd87bd..ead8e2eb90 100644 --- a/src/util/inc/tref.h +++ b/src/util/inc/tref.h @@ -47,14 +47,15 @@ int taosListRef(); void demoIterateRefs(int refId) { - void *p = taosGetRefNext(refId, NULL); + void *p = taosIterateRef(refId, NULL); while (p) { // process P - p = taosGetRefNext(refId, p); + p = taosIterateRef(refId, p); } } + */ #ifdef __cplusplus -- GitLab