From 25eb7af9ebf2b493b3589a9fa8029cda10541ae6 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Wed, 23 Dec 2020 16:16:08 +0800 Subject: [PATCH] fix: add cachelast column to show databases; --- src/mnode/src/mnodeDb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mnode/src/mnodeDb.c b/src/mnode/src/mnodeDb.c index 1b1b717c96..6b0c6043cf 100644 --- a/src/mnode/src/mnodeDb.c +++ b/src/mnode/src/mnodeDb.c @@ -612,6 +612,12 @@ static int32_t mnodeGetDbMeta(STableMetaMsg *pMeta, SShowObj *pShow, void *pConn strcpy(pSchema[cols].name, "comp"); pSchema[cols].bytes = htons(pShow->bytes[cols]); cols++; + + pShow->bytes[cols] = 1; + pSchema[cols].type = TSDB_DATA_TYPE_TINYINT; + strcpy(pSchema[cols].name, "cachelast"); + pSchema[cols].bytes = htons(pShow->bytes[cols]); + cols++; #ifndef __CLOUD_VERSION__ } #endif -- GitLab