内存数据库checkout和limitwal去除

Signed-off-by: zhangdi <zhangdi126@huawei.com>
This commit is contained in:
zhangdi 2024-11-15 16:36:29 +08:00
parent 5a70c4cdc9
commit 8389090150
2 changed files with 3 additions and 7 deletions

View File

@ -967,6 +967,7 @@ int SqliteConnection::CleanDirtyData(const std::string &table, uint64_t cursor)
int SqliteConnection::TryCheckPoint(bool timeout)
{
if (!isWriter_) {
return E_NOT_SUPPORT;
}

View File

@ -160,14 +160,9 @@ int SqliteStatement::BindArgs(const std::vector<std::reference_wrapper<ValueObje
bound_ = true;
int index = 1;
for (auto &arg : bindArgs) {
auto valueType = arg.get().value.index();
if (valueType < ValueObject::TYPE_NULL || valueType >= ValueObject::TYPE_BUTT) {
LOG_ERROR("index is out of range, index is %{public}zu", valueType);
return E_INVALID_ARGS;
}
auto action = ACTIONS[valueType];
auto action = ACTIONS[arg.get().value.index()];
if (action == nullptr) {
LOG_ERROR("not support the type %{public}zu", valueType);
LOG_ERROR("not support the type %{public}zu", arg.get().value.index());
return E_INVALID_ARGS;
}
auto errCode = action(stmt_, index, arg.get().value);