diff --git a/src/inc/taos.h b/src/inc/taos.h index 419685bd077a1df862e458be3b7b75ec645d6cd1..d4f1b8f48c9b31c32acd630b8419338bbc54aed2 100644 --- a/src/inc/taos.h +++ b/src/inc/taos.h @@ -29,6 +29,19 @@ typedef void TAOS_SUB; typedef void TAOS_STREAM; typedef void TAOS_STMT; +// Data type definition +#define TSDB_DATA_TYPE_NULL 0 // 1 bytes +#define TSDB_DATA_TYPE_BOOL 1 // 1 bytes +#define TSDB_DATA_TYPE_TINYINT 2 // 1 byte +#define TSDB_DATA_TYPE_SMALLINT 3 // 2 bytes +#define TSDB_DATA_TYPE_INT 4 // 4 bytes +#define TSDB_DATA_TYPE_BIGINT 5 // 8 bytes +#define TSDB_DATA_TYPE_FLOAT 6 // 4 bytes +#define TSDB_DATA_TYPE_DOUBLE 7 // 8 bytes +#define TSDB_DATA_TYPE_BINARY 8 // string +#define TSDB_DATA_TYPE_TIMESTAMP 9 // 8 bytes +#define TSDB_DATA_TYPE_NCHAR 10 // unicode string + typedef enum { TSDB_OPTION_LOCALE, TSDB_OPTION_CHARSET, diff --git a/src/inc/taosdef.h b/src/inc/taosdef.h index b46986d750c2ddc7f8475b18cca487ce9805ad8e..1f64a0d5c1cea24e4b4c623af77192f8a2f1395d 100644 --- a/src/inc/taosdef.h +++ b/src/inc/taosdef.h @@ -22,6 +22,7 @@ extern "C" { #include #include +#include "taos.h" #define TSDB__packed @@ -31,19 +32,6 @@ extern "C" { #define TSKEY int64_t #endif -// Data type definition -#define TSDB_DATA_TYPE_NULL 0 // 1 bytes -#define TSDB_DATA_TYPE_BOOL 1 // 1 bytes -#define TSDB_DATA_TYPE_TINYINT 2 // 1 byte -#define TSDB_DATA_TYPE_SMALLINT 3 // 2 bytes -#define TSDB_DATA_TYPE_INT 4 // 4 bytes -#define TSDB_DATA_TYPE_BIGINT 5 // 8 bytes -#define TSDB_DATA_TYPE_FLOAT 6 // 4 bytes -#define TSDB_DATA_TYPE_DOUBLE 7 // 8 bytes -#define TSDB_DATA_TYPE_BINARY 8 // string -#define TSDB_DATA_TYPE_TIMESTAMP 9 // 8 bytes -#define TSDB_DATA_TYPE_NCHAR 10 // unicode string - // Bytes for each type. extern const int32_t TYPE_BYTES[11]; // TODO: replace and remove code below diff --git a/src/mnode/src/mgmtAcct.c b/src/mnode/src/mgmtAcct.c index cd5b849cccd89c5c447d45a8557de4d1e4134188..f9e2c8b105add14976f85b097038f8fce865c46b 100644 --- a/src/mnode/src/mgmtAcct.c +++ b/src/mnode/src/mgmtAcct.c @@ -82,6 +82,8 @@ static int32_t mgmtActionAcctRestored() { if (dnodeIsFirstDeploy()) { mgmtCreateRootAcct(); } + + acctInit(); return TSDB_CODE_SUCCESS; } @@ -112,7 +114,7 @@ int32_t mgmtInitAccts() { } mTrace("table:%s, hash is created", tableDesc.tableName); - return acctInit(); + return TSDB_CODE_SUCCESS; } void mgmtCleanUpAccts() { diff --git a/src/mnode/src/mgmtDb.c b/src/mnode/src/mgmtDb.c index 35b57094fde0ea012e8079718e20db41ae5e855f..d57b75501ade303133fd594008c5869659a7b7b5 100644 --- a/src/mnode/src/mgmtDb.c +++ b/src/mnode/src/mgmtDb.c @@ -882,18 +882,25 @@ static void mgmtProcessDropDbMsg(SQueuedMsg *pMsg) { void mgmtDropAllDbs(SAcctObj *pAcct) { int32_t numOfDbs = 0; SDbObj *pDb = NULL; - void *pNode = NULL; + void * pNode = NULL; while (1) { pNode = sdbFetchRow(tsDbSdb, pNode, (void **)&pDb); if (pDb == NULL) break; if (pDb->pAcct == pAcct) { - mgmtSetDbDropping(pDb); + mPrint("db:%s, drop db from sdb for acct:%s is dropped", pDb->name, pAcct->user); + SSdbOper oper = { + .type = SDB_OPER_LOCAL, + .table = tsDbSdb, + .pObj = pDb + }; + + sdbDeleteRow(&oper); numOfDbs++; } mgmtDecDbRef(pDb); } - mTrace("acct:%s, all dbs is is set dirty", pAcct->user, numOfDbs); + mTrace("acct:%s, all dbs is is dropped from sdb", pAcct->user, numOfDbs); } diff --git a/src/mnode/src/mgmtSdb.c b/src/mnode/src/mgmtSdb.c index 5ed0c460311fd44b7a49ba79d5c041bd142cefac..9e4bfb453b10113852b20c4aab9e1ba5d3f7f13e 100644 --- a/src/mnode/src/mgmtSdb.c +++ b/src/mnode/src/mgmtSdb.c @@ -333,7 +333,7 @@ void sdbIncRef(void *handle, void *pRow) { SSdbTable *pTable = handle; int32_t * pRefCount = (int32_t *)(pRow + pTable->refCountPos); atomic_add_fetch_32(pRefCount, 1); - if (0 && strcmp(pTable->tableName, "dnodes") == 0) { + if (0 && strcmp(pTable->tableName, "accounts") == 0) { sdbTrace("table:%s, add ref to record:%s:%s:%d", pTable->tableName, pTable->tableName, sdbGetkeyStr(pTable, pRow), *pRefCount); } @@ -345,7 +345,7 @@ void sdbDecRef(void *handle, void *pRow) { SSdbTable *pTable = handle; int32_t * pRefCount = (int32_t *)(pRow + pTable->refCountPos); int32_t refCount = atomic_sub_fetch_32(pRefCount, 1); - if (0 && strcmp(pTable->tableName, "dnodes") == 0) { + if (0 && strcmp(pTable->tableName, "accounts") == 0) { sdbTrace("table:%s, def ref of record:%s:%s:%d", pTable->tableName, pTable->tableName, sdbGetkeyStr(pTable, pRow), *pRefCount); } @@ -404,23 +404,24 @@ static int32_t sdbInsertHash(SSdbTable *pTable, SSdbOper *pOper) { pthread_mutex_unlock(&pTable->mutex); - sdbTrace("table:%s, insert record:%s to hash, numOfRows:%d", pTable->tableName, sdbGetkeyStr(pTable, pOper->pObj), - pTable->numOfRows); + sdbTrace("table:%s, insert record:%s to hash, numOfRows:%d version:%" PRIu64, pTable->tableName, + sdbGetkeyStr(pTable, pOper->pObj), pTable->numOfRows, sdbGetVersion()); (*pTable->insertFp)(pOper); return TSDB_CODE_SUCCESS; } static int32_t sdbDeleteHash(SSdbTable *pTable, SSdbOper *pOper) { + (*pTable->deleteFp)(pOper); + pthread_mutex_lock(&pTable->mutex); (*sdbDeleteIndexFp[pTable->keyType])(pTable->iHandle, pOper->pObj); pTable->numOfRows--; pthread_mutex_unlock(&pTable->mutex); - sdbTrace("table:%s, delete record:%s from hash, numOfRows:%d", pTable->tableName, sdbGetkeyStr(pTable, pOper->pObj), - pTable->numOfRows); + sdbTrace("table:%s, delete record:%s from hash, numOfRows:%d version:%" PRIu64, pTable->tableName, + sdbGetkeyStr(pTable, pOper->pObj), pTable->numOfRows, sdbGetVersion()); - (*pTable->deleteFp)(pOper); int8_t *updateEnd = pOper->pObj + pTable->refCountPos - 1; *updateEnd = 1; sdbDecRef(pTable, pOper->pObj); @@ -429,8 +430,8 @@ static int32_t sdbDeleteHash(SSdbTable *pTable, SSdbOper *pOper) { } static int32_t sdbUpdateHash(SSdbTable *pTable, SSdbOper *pOper) { - sdbTrace("table:%s, update record:%s in hash, numOfRows:%d", pTable->tableName, sdbGetkeyStr(pTable, pOper->pObj), - pTable->numOfRows); + sdbTrace("table:%s, update record:%s in hash, numOfRows:%d version:%" PRIu64, pTable->tableName, + sdbGetkeyStr(pTable, pOper->pObj), pTable->numOfRows, sdbGetVersion()); (*pTable->updateFp)(pOper); return TSDB_CODE_SUCCESS; diff --git a/src/mnode/src/mgmtTable.c b/src/mnode/src/mgmtTable.c index 3b5784986e12d47ebd9fc1d3846b5033473da9da..79886f734d3b9d425c208b1159e6fcb3f5533e3e 100644 --- a/src/mnode/src/mgmtTable.c +++ b/src/mnode/src/mgmtTable.c @@ -714,7 +714,7 @@ static void mgmtProcessCreateSuperTableMsg(SQueuedMsg *pMsg) { pStable->numOfColumns = htons(pCreate->numOfColumns); pStable->numOfTags = htons(pCreate->numOfTags); - int32_t numOfCols = pCreate->numOfColumns + pCreate->numOfTags; + int32_t numOfCols = pStable->numOfColumns + pStable->numOfTags; int32_t schemaSize = numOfCols * sizeof(SSchema); pStable->schema = (SSchema *)calloc(1, schemaSize); if (pStable->schema == NULL) { @@ -745,7 +745,7 @@ static void mgmtProcessCreateSuperTableMsg(SQueuedMsg *pMsg) { mError("table:%s, failed to create, sdb error", pCreate->tableId); mgmtSendSimpleResp(pMsg->thandle, TSDB_CODE_SDB_ERROR); } else { - mLPrint("table:%s, is created, tags:%d cols:%d", pStable->info.tableId, pStable->numOfTags, pStable->numOfColumns); + mLPrint("table:%s, is created, tags:%d fields:%d", pStable->info.tableId, pStable->numOfTags, pStable->numOfColumns); mgmtSendSimpleResp(pMsg->thandle, TSDB_CODE_SUCCESS); } } @@ -1583,7 +1583,7 @@ static int32_t mgmtDoGetChildTableMeta(SQueuedMsg *pMsg, STableMetaMsg *pMeta) { if (pTable->info.type == TSDB_CHILD_TABLE) { pMeta->sversion = htons(pTable->superTable->sversion); - pMeta->numOfTags = 0; + pMeta->numOfTags = (int8_t)pTable->superTable->numOfTags; pMeta->numOfColumns = htons((int16_t)pTable->superTable->numOfColumns); pMeta->contLen = sizeof(STableMetaMsg) + mgmtSetSchemaFromSuperTable(pMeta->schema, pTable->superTable); strncpy(pMeta->stableId, pTable->superTable->info.tableId, tListLen(pMeta->stableId)); diff --git a/src/vnode/src/vnodeMain.c b/src/vnode/src/vnodeMain.c index 5c5b6ff272bf3513edef602b1875bc3094b1164a..6936dc0345780e907497c4b970e60d7aba078638 100644 --- a/src/vnode/src/vnodeMain.c +++ b/src/vnode/src/vnodeMain.c @@ -39,7 +39,7 @@ static int vnodeWalCallback(void *arg); static int32_t vnodeSaveCfg(SMDCreateVnodeMsg *pVnodeCfg); static int32_t vnodeReadCfg(SVnodeObj *pVnode); static int32_t vnodeSaveVersion(SVnodeObj *pVnode); -static int32_t vnodeReadVersion(SVnodeObj *pVnode); +static bool vnodeReadVersion(SVnodeObj *pVnode); static int vnodeWalCallback(void *arg); static uint32_t vnodeGetFileInfo(void *ahandle, char *name, uint32_t *index, int32_t *size); static int vnodeGetWalInfo(void *ahandle, char *name, uint32_t *index); @@ -287,7 +287,7 @@ void *vnodeGetVnode(int32_t vgId) { SVnodeObj **ppVnode = (SVnodeObj **)taosGetIntHashData(tsDnodeVnodesHash, vgId); if (ppVnode == NULL || *ppVnode == NULL) { terrno = TSDB_CODE_INVALID_VGROUP_ID; - dError("vgId:%d not exist"); + dError("vgId:%d not exist", vgId); return NULL; } @@ -611,7 +611,7 @@ static int32_t vnodeSaveVersion(SVnodeObj *pVnode) { sprintf(versionFile, "%s/vnode%d/version.json", tsVnodeDir, pVnode->vgId); FILE *fp = fopen(versionFile, "w"); if (!fp) { - dError("pVnode:%p vgId:%d, failed to open vnode version file for write, error:%s", pVnode, pVnode->vgId); + dError("pVnode:%p vgId:%d, failed to open vnode version file for write, error:%s", pVnode, pVnode->vgId, strerror(errno)); return errno; } @@ -632,23 +632,23 @@ static int32_t vnodeSaveVersion(SVnodeObj *pVnode) { return 0; } -static int32_t vnodeReadVersion(SVnodeObj *pVnode) { +static bool vnodeReadVersion(SVnodeObj *pVnode) { char versionFile[TSDB_FILENAME_LEN + 30] = {0}; sprintf(versionFile, "%s/vnode%d/version.json", tsVnodeDir, pVnode->vgId); FILE *fp = fopen(versionFile, "w"); if (!fp) { - dError("pVnode:%p vgId:%d, failed to open vnode version file for write, error:%s", pVnode, pVnode->vgId); - return errno; + dError("pVnode:%p vgId:%d, failed to open vnode version file for write, error:%s", pVnode, pVnode->vgId, strerror(errno)); + return false; } - int ret = TSDB_CODE_OTHERS; + bool ret = false; int maxLen = 100; char *content = calloc(1, maxLen + 1); int len = fread(content, 1, maxLen, fp); if (len <= 0) { free(content); fclose(fp); - dError("pVnode:%p vgId:%d, failed to read vnode version, content is null", pVnode, pVnode->vgId); + dPrint("pVnode:%p vgId:%d, failed to read vnode version, content is null", pVnode, pVnode->vgId); return false; } @@ -665,7 +665,7 @@ static int32_t vnodeReadVersion(SVnodeObj *pVnode) { } pVnode->version = version->valueint; - ret = 0; + ret = true; dPrint("pVnode:%p vgId:%d, read vnode version successed, version:%%" PRId64, pVnode, pVnode->vgId, pVnode->version); diff --git a/tests/script/general/account/testSuite.sim b/tests/script/general/account/testSuite.sim deleted file mode 100644 index 08fd03665fdc6e8dab88744d476b270070a738c9..0000000000000000000000000000000000000000 --- a/tests/script/general/account/testSuite.sim +++ /dev/null @@ -1,5 +0,0 @@ -run general/account/pass_alter.sim -run general/account/pass_len.sim -run general/account/user_create.sim -run general/account/user_len.sim -run general/account/monitor.sim \ No newline at end of file diff --git a/tests/script/general/user/basic1.sim b/tests/script/general/user/basic1.sim index f02a4d0e2722efaa7ca5de8627de6edaeff51d93..4bc7deae839f154181fd26b46f649dfa75e1738f 100644 --- a/tests/script/general/user/basic1.sim +++ b/tests/script/general/user/basic1.sim @@ -13,6 +13,11 @@ print $data00 $data01 $data02 print $data10 $data11 $data22 print $data20 $data11 $data22 +sql_error show accounts; +sql_error create account a pass "a" +sql_error drop account a +sql_error drop account root + print =============== create user1 sql create user user1 PASS 'user1' sql show users diff --git a/tests/script/unique/account/account_create.sim b/tests/script/unique/account/account_create.sim index 0963739ec9fc8ea559bf93c204ac2c5b434924ad..ca7e91e8921868799b52ac093801fe1cd8614fa4 100644 --- a/tests/script/unique/account/account_create.sim +++ b/tests/script/unique/account/account_create.sim @@ -2,11 +2,10 @@ system sh/stop_dnodes.sh system sh/ip.sh -i 1 -s up system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1 -system sh/cfg.sh -n dnode1 -c commitLog -v 0 -system sh/exec.sh -n dnode1 -s start +system sh/cfg.sh -n dnode1 -c clog -v 0 +system sh/exec_up.sh -n dnode1 -s start sql connect -sleep 3000 print ============================ dnode1 start diff --git a/tests/script/unique/account/account_delete.sim b/tests/script/unique/account/account_delete.sim index 2a140961bb8bcfaeafb059f74f7b58fbccec60ef..35cdcabfc7cced5fa6e0db2798b7922fb2d00b49 100644 --- a/tests/script/unique/account/account_delete.sim +++ b/tests/script/unique/account/account_delete.sim @@ -2,8 +2,8 @@ system sh/stop_dnodes.sh system sh/ip.sh -i 1 -s up system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1 -system sh/cfg.sh -n dnode1 -c commitLog -v 0 -system sh/exec.sh -n dnode1 -s start +system sh/cfg.sh -n dnode1 -c clog -v 0 +system sh/exec_up.sh -n dnode1 -s start sql connect sleep 3000 @@ -53,7 +53,7 @@ if $rows != 0 then return -1 endi sql show dnodes -if $data02 != 2 then +if $data03 != 2 then return -1 endi sql drop account oroot diff --git a/tests/script/unique/account/account_len.sim b/tests/script/unique/account/account_len.sim index 759e469aa8f813b29f0d092161ec2f9f49aea57e..80d1a56a096b16a58adfd38e1088cb0b4dc34845 100644 --- a/tests/script/unique/account/account_len.sim +++ b/tests/script/unique/account/account_len.sim @@ -2,8 +2,8 @@ system sh/stop_dnodes.sh system sh/ip.sh -i 1 -s up system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1 -system sh/cfg.sh -n dnode1 -c commitLog -v 0 -system sh/exec.sh -n dnode1 -s start +system sh/cfg.sh -n dnode1 -c clog -v 0 +system sh/exec_up.sh -n dnode1 -s start sql connect sleep 3000 diff --git a/tests/script/unique/account/authority.sim b/tests/script/unique/account/authority.sim index c37b4e39b62a47ca9a9cda9a8a0208e13646dde0..352e9797e3057b8a88fddbf22613315cd0fa7b6f 100644 --- a/tests/script/unique/account/authority.sim +++ b/tests/script/unique/account/authority.sim @@ -2,9 +2,9 @@ system sh/stop_dnodes.sh system sh/ip.sh -i 1 -s up system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1 -system sh/cfg.sh -n dnode1 -c commitLog -v 0 +system sh/cfg.sh -n dnode1 -c clog -v 0 system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 8 -system sh/exec.sh -n dnode1 -s start +system sh/exec_up.sh -n dnode1 -s start sql connect sleep 3000 diff --git a/tests/script/unique/account/basic.sim b/tests/script/unique/account/basic.sim index 6f64975ac284d6e420a76a7fd4e356d1beee023f..7e386bb04f82116c6a8cad3260d5aa885eaaa0ea 100644 --- a/tests/script/unique/account/basic.sim +++ b/tests/script/unique/account/basic.sim @@ -1,6 +1,6 @@ system sh/stop_dnodes.sh system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1 -system sh/exec_up.sh -n dnode1 -s start +system sh/exec_up_up.sh -n dnode1 -s start sql connect print =============== show accounts diff --git a/tests/script/unique/account/monitor.sim b/tests/script/unique/account/monitor.sim index ea5155afbce88a512aadba7c3399388c9c117b0a..ce71fb766e71d83e51bae499d67b813920ccad90 100644 --- a/tests/script/unique/account/monitor.sim +++ b/tests/script/unique/account/monitor.sim @@ -7,7 +7,7 @@ system sh/cfg.sh -n dnode1 -c monitor -v 0 print ========== step1 system sh/cfg.sh -n dnode1 -c monitor -v 1 system sh/cfg.sh -n dnode1 -c monitorInterval -v 1 -system sh/exec.sh -n dnode1 -s start +system sh/exec_up.sh -n dnode1 -s start sql connect sleep 3000 diff --git a/tests/script/unique/account/paras.sim b/tests/script/unique/account/paras.sim index 14ee2f6c852a4be1dba8632ed0268da494287d8d..f312a30c145fe1f1b6e4572f431cc68393a378e1 100644 --- a/tests/script/unique/account/paras.sim +++ b/tests/script/unique/account/paras.sim @@ -1,6 +1,6 @@ system sh/stop_dnodes.sh system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1 -system sh/exec_up.sh -n dnode1 -s start +system sh/exec_up_up.sh -n dnode1 -s start sql connect print =============== show accounts diff --git a/tests/script/unique/account/pass_alter.sim b/tests/script/unique/account/pass_alter.sim index 3314eda56fa53af0b0e7c49a76048b4a53f69b47..d327d3d4e295dd436c0944199ecce426459c01f2 100644 --- a/tests/script/unique/account/pass_alter.sim +++ b/tests/script/unique/account/pass_alter.sim @@ -2,8 +2,8 @@ system sh/stop_dnodes.sh system sh/ip.sh -i 1 -s up system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1 -system sh/cfg.sh -n dnode1 -c commitLog -v 0 -system sh/exec.sh -n dnode1 -s start +system sh/cfg.sh -n dnode1 -c clog -v 0 +system sh/exec_up.sh -n dnode1 -s start sql connect sleep 3000 diff --git a/tests/script/unique/account/pass_len.sim b/tests/script/unique/account/pass_len.sim index 45d27d40c3d9edcd51ecaa7d8194cef97efae9c7..426c18adf71fd0d1b1244335365bfb103ceb42a6 100644 --- a/tests/script/unique/account/pass_len.sim +++ b/tests/script/unique/account/pass_len.sim @@ -2,8 +2,8 @@ system sh/stop_dnodes.sh system sh/ip.sh -i 1 -s up system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1 -system sh/cfg.sh -n dnode1 -c commitLog -v 0 -system sh/exec.sh -n dnode1 -s start +system sh/cfg.sh -n dnode1 -c clog -v 0 +system sh/exec_up.sh -n dnode1 -s start sql connect sleep 3000 diff --git a/tests/script/unique/account/testSuite.sim b/tests/script/unique/account/testSuite.sim index 95bdeeb7604c5f7775f860212aaa5c9248d51a2a..b48ebd9354018b61663182dcee2202936a92808d 100644 --- a/tests/script/unique/account/testSuite.sim +++ b/tests/script/unique/account/testSuite.sim @@ -1,9 +1,9 @@ run unique/account/account_create.sim run unique/account/account_len.sim +run unique/account/account_delete.sim run unique/account/pass_alter.sim run unique/account/pass_len.sim -run unique/account/authority.sim -run unique/account/account_delete.sim run unique/account/user_create.sim run unique/account/user_len.sim +run unique/account/authority.sim run unique/account/monitor.sim diff --git a/tests/script/unique/account/usage.sim b/tests/script/unique/account/usage.sim index 5b334374c9a270422c0f84a5f7fcc88546bbd7c1..4f32e0047b9cbae34db1144cc1ab3d879ba1c1cc 100644 --- a/tests/script/unique/account/usage.sim +++ b/tests/script/unique/account/usage.sim @@ -1,6 +1,6 @@ system sh/stop_dnodes.sh system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1 -system sh/exec_up.sh -n dnode1 -s start +system sh/exec_up_up.sh -n dnode1 -s start sql connect print =============== show accounts diff --git a/tests/script/unique/account/user_create.sim b/tests/script/unique/account/user_create.sim index 09a86fb2e011e9ce5cfed8a4e542111304a7a47d..97a48cf8f6b1a69f055d7ec76e4c7fcd8ad3407a 100644 --- a/tests/script/unique/account/user_create.sim +++ b/tests/script/unique/account/user_create.sim @@ -2,8 +2,8 @@ system sh/stop_dnodes.sh system sh/ip.sh -i 1 -s up system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1 -system sh/cfg.sh -n dnode1 -c commitLog -v 0 -system sh/exec.sh -n dnode1 -s start +system sh/cfg.sh -n dnode1 -c clog -v 0 +system sh/exec_up.sh -n dnode1 -s start sql connect sleep 3000 diff --git a/tests/script/unique/account/user_len.sim b/tests/script/unique/account/user_len.sim index 0da5209a2c1ed86903005efc44342bb0a8a009c3..260a0c78b5ba7c3941b59594907de5ec6629884d 100644 --- a/tests/script/unique/account/user_len.sim +++ b/tests/script/unique/account/user_len.sim @@ -2,8 +2,8 @@ system sh/stop_dnodes.sh system sh/ip.sh -i 1 -s up system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1 -system sh/cfg.sh -n dnode1 -c commitLog -v 0 -system sh/exec.sh -n dnode1 -s start +system sh/cfg.sh -n dnode1 -c clog -v 0 +system sh/exec_up.sh -n dnode1 -s start sql connect sleep 3000