提交 fcd13165 编写于 作者: S slguan

[TBASE-1229]

上级 b0f2738e
...@@ -353,18 +353,8 @@ int64_t sdbInsertRow(void *handle, void *row, int rowSize) { ...@@ -353,18 +353,8 @@ int64_t sdbInsertRow(void *handle, void *row, int rowSize) {
if ((pTable->keyType != SDB_KEYTYPE_AUTO) || *((int64_t *)row)) if ((pTable->keyType != SDB_KEYTYPE_AUTO) || *((int64_t *)row))
if (sdbGetRow(handle, row)) { if (sdbGetRow(handle, row)) {
if (strcmp(pTable->name, "mnode") == 0) { sdbError("table:%s, failed to insert record, sdbVersion:%d", pTable->name, sdbVersion);
/* return -1;
* 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;
}
} }
total_size = sizeof(SRowHead) + pTable->maxRowSize + sizeof(TSCKSUM); total_size = sizeof(SRowHead) + pTable->maxRowSize + sizeof(TSCKSUM);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册