diff --git a/src/sdb/src/sdbEngine.c b/src/sdb/src/sdbEngine.c index f459def1fc708e420e7a7d40a4fa90b85c137fd8..1cc487c285c7bdd3168c7558f143b651469885b6 100644 --- a/src/sdb/src/sdbEngine.c +++ b/src/sdb/src/sdbEngine.c @@ -353,18 +353,8 @@ int64_t sdbInsertRow(void *handle, void *row, int rowSize) { if ((pTable->keyType != SDB_KEYTYPE_AUTO) || *((int64_t *)row)) if (sdbGetRow(handle, row)) { - if (strcmp(pTable->name, "mnode") == 0) { - /* - * An mnode is created when the cluster is started, so conflicts may occur during synchronization. - * In this case, the version is still increased. - */ - sdbVersion++; - sdbPrint("table:%s, failed to insert record to mnodes, sdbVersion:%d", pTable->name, sdbVersion); - return -1; - } else { - sdbError("table:%s, failed to insert record, sdbVersion:%d", pTable->name, sdbVersion); - return -1; - } + sdbError("table:%s, failed to insert record, sdbVersion:%d", pTable->name, sdbVersion); + return -1; } total_size = sizeof(SRowHead) + pTable->maxRowSize + sizeof(TSCKSUM);