diff --git a/src/util/src/tref.c b/src/util/src/tref.c index 3ef45e9b191fddc45220c7b07551b098ae0891ba..ebae8ece14e2f3bd045fee92482afa4c6c403949 100644 --- a/src/util/src/tref.c +++ b/src/util/src/tref.c @@ -274,7 +274,7 @@ void *taosIterateRef(int rsetId, int64_t rid) { return NULL; } - if (rid <= 0) { + if (rid < 0) { uTrace("rsetId:%d rid:%" PRId64 " failed to iterate, rid not valid", rsetId, rid); terrno = TSDB_CODE_REF_NOT_EXIST; return NULL;