检视意见修改

Signed-off-by: luyangyang <1049603119@qq.com>
This commit is contained in:
luyangyang 2024-09-19 11:36:05 +08:00
parent a9f90bd151
commit 7603bfaa98
3 changed files with 4 additions and 4 deletions

View File

@ -234,7 +234,7 @@ private:
int RegisterDataChangeCallback();
void InitDelayNotifier();
bool ColHasSpecificField(const std::vector<std::string> &columns);
std::pair<int32_t, Stmt> CreateStatementForBackup(const std::string &sql);
std::pair<int32_t, Stmt> CreateWriteableStmt(const std::string &sql);
std::pair<int32_t, Stmt> GetStatement(const std::string& sql, std::shared_ptr<Connection> conn) const;
std::pair<int32_t, Stmt> GetStatement(const std::string& sql, bool read = false) const;
int AttachInner(const std::string &attachName,

View File

@ -126,7 +126,7 @@ private:
void DoCloudSync(const std::string &table);
int InnerBackup(const std::string& databasePath,
const std::vector<uint8_t>& destEncryptKey = std::vector<uint8_t>());
std::pair<int32_t, Stmt> CreateStatementForBackup(const std::string &sql);
std::pair<int32_t, Stmt> CreateWriteableStmt(const std::string &sql);
std::pair<int32_t, Stmt> GetStatement(const std::string& sql, std::shared_ptr<Connection> conn) const;
std::pair<int32_t, Stmt> GetStatement(const std::string& sql, bool read = false) const;
int AttachInner(const std::string &attachName,

View File

@ -1163,7 +1163,7 @@ int RdbStoreImpl::InnerBackup(const std::string &databasePath, const std::vector
return conn == nullptr ? E_BASE : conn->Backup(databasePath, {}, false, slaveStatus_);
}
auto [errCode, statement] = CreateStatementForBackup(GlobalExpr::CIPHER_DEFAULT_ATTACH_HMAC_ALGO);
auto [errCode, statement] = CreateWriteableStmt(GlobalExpr::CIPHER_DEFAULT_ATTACH_HMAC_ALGO);
if (errCode != E_OK || statement == nullptr) {
return errCode;
}
@ -2423,7 +2423,7 @@ int32_t RdbStoreImpl::UnlockCloudContainer()
}
#endif
std::pair<int32_t, std::shared_ptr<Statement>> RdbStoreImpl::CreateStatementForBackup(const std::string &sql)
std::pair<int32_t, std::shared_ptr<Statement>> RdbStoreImpl::CreateWriteableStmt(const std::string &sql)
{
auto config = config_;
config.SetHaMode(HAMode::SINGLE);