Home
last modified time | relevance | path

Searched refs:cloudGid (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Ddistributeddb_cloud_strategy_test.cpp119 localInfo.cloudGid = "gid";
162 localInfo.cloudGid = "";
215 localInfo.cloudGid = "gid";
217 localInfo.cloudGid = "";
228 localInfo.cloudGid = "gid";
259 localInfo.cloudGid = "";
267 localInfo.cloudGid = "gid";
275 localInfo.cloudGid = "";
284 localInfo.cloudGid = "gid";
307 localInfo.cloudGid = "";
[all …]
H A Ddistributeddb_cloud_db_proxy_test.cpp754 cloudInfo.cloudGid = "gid";
761 EXPECT_EQ(localLogInfoCache[hashKey].cloudGid, cloudInfo.cloudGid);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/cloud/
H A Dcloud_sync_strategy.cpp79 LOGW("[CloudSyncStrategy] dont ignore %.6s", localInfo.cloudGid.c_str()); in IsIgnoreUpdate()
83 LOGW("[CloudSyncStrategy] %.6s was ignored override", localInfo.cloudGid.c_str()); in IsIgnoreUpdate()
H A Dcloud_merge_strategy.cpp49 …if (isTimeSame && (localInfo.cloudGid.empty() || cloudInfo.sharingResource != localInfo.sharingRes… in TagSyncDataStatus()
71 if (localInfo.cloudGid.empty()) { in TagLocallyNewer()
H A Dcloud_force_pull_strategy.cpp40 bool gidEmpty = localInfo.cloudGid.empty(); in TagSyncDataStatus()
H A Dcloud_force_push_strategy.cpp31 if (localInfo.cloudGid.empty()) { in TagSyncDataStatus()
H A Dcloud_sync_utils.cpp151 localLogInfo.cloudGid == cloudLogInfo.cloudGid && in NeedSaveData()
188 cloudLogInfo.cloudGid = std::get<std::string>(datum[CloudDbConstant::GID_FIELD]); in GetCloudLogInfo()
369 updateLogInfo.cloudGid.clear(); in UpdateLocalCache()
H A Dcloud_syncer_extend.cpp106 std::vector<std::string> cloudGid; in GetCloudGid() local
108 …t errCode = storageProxy_->GetCloudGid(obj, isCloudForcePush, IsCompensatedTask(taskId), cloudGid); in GetCloudGid()
111 } else if (!cloudGid.empty()) { in GetCloudGid()
112 obj.SetCloudGid(cloudGid); in GetCloudGid()
114 LOGI("[CloudSyncer] get cloud gid size:%zu", cloudGid.size()); in GetCloudGid()
435 logInfo.cloudGid = gid; in CommitDownloadAssets()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dquery_sync_object.cpp246 void QuerySyncObject::SetCloudGid(const std::vector<std::string> &cloudGid) in SetCloudGid() argument
248 for (size_t i = 0; i < cloudGid.size(); i+= MAX_VALUE_SIZE) { in SetCloudGid()
249 size_t end = std::min(i + MAX_VALUE_SIZE, cloudGid.size()); in SetCloudGid()
259 std::vector<std::string> subCloudGid(cloudGid.begin() + i, cloudGid.begin() + end); in SetCloudGid()
H A Dquery_sync_object.h48 void SetCloudGid(const std::vector<std::string> &cloudGid);
H A Dsqlite_cloud_kv_executor_utils.cpp151 std::string cloudGid = reinterpret_cast<const std::string::value_type *>( in GetCloudLog() local
153 if (!cloudGid.empty()) { in GetCloudLog()
154 logInfo.insert_or_assign(CloudDbConstant::GID_FIELD, cloudGid); in GetCloudLog()
155 totalSize += cloudGid.size(); in GetCloudLog()
353 dataInfoWithLog.logInfo.cloudGid = gid; in FillLogInfoWithStmt()
1379 QuerySyncObject &querySyncObject, std::vector<std::string> &cloudGid) in QueryCloudGid() argument
1403 cloudGid.push_back(gid); in QueryCloudGid()
H A Dsqlite_cloud_kv_store.h58 bool isCompensatedTask, std::vector<std::string> &cloudGid) override;
H A Dsqlite_cloud_kv_store.cpp349 bool isCloudForcePush, bool isCompensatedTask, std::vector<std::string> &cloudGid) in GetCloudGid() argument
359 …rrCode = SqliteCloudKvExecutorUtils::QueryCloudGid(db, handle->IsMemory(), user_, query, cloudGid); in GetCloudGid()
H A Dsqlite_cloud_kv_executor_utils.h63 std::vector<std::string> &cloudGid);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsqlite_single_ver_relational_storage_executor_extend.cpp103 (void)SQLiteUtils::GetColumnTextValue(statement, index++, logInfo.cloudGid); // 7 is cloud_gid in GetLogInfoByStatement()
196 std::string cloudGid; in GetQueryLogStatement() local
198 errCode = CloudStorageUtils::GetValueFromVBucket(CloudDbConstant::GID_FIELD, vBucket, cloudGid); in GetQueryLogStatement()
206 if (!cloudGid.empty()) { in GetQueryLogStatement()
208 errCode = SQLiteUtils::BindTextToStatement(selectStmt, index, cloudGid); in GetQueryLogStatement()
228 std::string cloudGid; in GetQueryLogSql() local
229 …nt errCode = CloudStorageUtils::GetValueFromVBucket(CloudDbConstant::GID_FIELD, vBucket, cloudGid); in GetQueryLogSql()
235 if (pkSet.empty() && cloudGid.empty()) { in GetQueryLogSql()
241 if (!cloudGid.empty()) { in GetQueryLogSql()
786 std::string cloudGid; in BindHashKeyAndGidToInsertLogStatement() local
[all …]
H A Dsqlite_single_ver_relational_storage_extend_executor.cpp99 std::string cloudGid; in FillCloudAssetForDownload() local
100 …nt errCode = CloudStorageUtils::GetValueFromVBucket(CloudDbConstant::GID_FIELD, vBucket, cloudGid); in FillCloudAssetForDownload()
116 …std::tie(errCode, std::ignore) = GetAssetsByGidOrHashKey(tableSchema, cloudGid, hashKey, dbAssets); in FillCloudAssetForDownload()
127 errCode = IncreaseCursorOnAssetData(tableSchema.name, cloudGid); in FillCloudAssetForDownload()
141 errCode = ExecuteFillDownloadAssetStatement(stmt, assetsField.size() + 1, cloudGid); in FillCloudAssetForDownload()
291 std::string cloudGid; in InitFillUploadAssetStatement() local
293 …CloudStorageUtils::GetValueFromVBucket<std::string>(CloudDbConstant::GID_FIELD, vBucket, cloudGid); in InitFillUploadAssetStatement()
294 …std::tie(errCode, std::ignore) = GetAssetsByGidOrHashKey(tableSchema, cloudGid, data.hashKey.at(in… in InitFillUploadAssetStatement()
1414 int beginIndex, const std::string &cloudGid) in ExecuteFillDownloadAssetStatement() argument
1416 int errCode = SQLiteUtils::BindTextToStatement(stmt, beginIndex, cloudGid); in ExecuteFillDownloadAssetStatement()
[all …]
H A Dsqlite_single_ver_relational_storage_executor.cpp612 std::string cloudGid = reinterpret_cast<const std::string::value_type *>( in GetCloudLog() local
614 if (!cloudGid.empty()) { in GetCloudLog()
615 logInfo.insert_or_assign(CloudDbConstant::GID_FIELD, cloudGid); in GetCloudLog()
616 totalSize += cloudGid.size(); in GetCloudLog()
640 void GetCloudGid(sqlite3_stmt *logStatement, std::vector<std::string> &cloudGid) in GetCloudGid() argument
651 cloudGid.emplace_back(gid); in GetCloudGid()
1607 bool isCompensatedTask, std::vector<std::string> &cloudGid) in GetSyncCloudGid() argument
1627 GetCloudGid(queryStmt, cloudGid); in GetSyncCloudGid()
H A Dsqlite_single_ver_relational_storage_executor.h127 bool isCompensatedTask, std::vector<std::string> &cloudGid);
414 …xecuteFillDownloadAssetStatement(sqlite3_stmt *&stmt, int beginIndex, const std::string &cloudGid);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/
H A Ddata_transformer.h38 std::string cloudGid; // use for sync with cloud member
H A Dstorage_proxy.cpp263 bool isCompensatedTask, std::vector<std::string> &cloudGid) in GetCloudGid() argument
274 …n store_->GetCloudGid(tableSchema, querySyncObject, isCloudForcePush, isCompensatedTask, cloudGid); in GetCloudGid()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_relational_cloud_syncable_storage_test.cpp147 std::string cloudGid; in InitLogData() local
152 cloudGid = "''"; in InitLogData()
155 cloudGid = "'" + g_storeID + index + "'"; in InitLogData()
158 cloudGid = "'" + g_storeID + index + "'"; in InitLogData()
161 cloudGid = "''"; in InitLogData()
167 std::to_string(g_startTime + i) + "','" + flag + "', ? , " + cloudGid + ");"; in InitLogData()
995 ASSERT_EQ(dataInfo.logInfo.cloudGid, std::to_string(i));
1033 ASSERT_EQ(dataInfo.logInfo.cloudGid, std::to_string(i));
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/cloud/
H A Ddistributeddb_cloud_meta_data_test.cpp340 std::vector<std::string> cloudGid; variable
341 EXPECT_EQ(obj.GetCloudGid(tableSchema, querySync, true, true, cloudGid), -E_INVALID_DB);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/
H A Dstorage_proxy.h78 bool isCompensatedTask, std::vector<std::string> &cloudGid);
H A Dicloud_sync_storage_interface.h124 bool isCloudForcePush, bool isCompensatedTask, std::vector<std::string> &cloudGid) = 0;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/relational/
H A Drelational_sync_able_storage.cpp1157 bool isCloudForcePush, bool isCompensatedTask, std::vector<std::string> &cloudGid) in GetCloudGid() argument
1169 …ode = handle->GetSyncCloudGid(query, syncTimeRange, isCloudForcePush, isCompensatedTask, cloudGid); in GetCloudGid()
1838 recordCopy[CloudDbConstant::GID_FIELD] = dataInfoWithLog.logInfo.cloudGid; in UpsertDataInTransaction()
1910 std::string cloudGid; in UpdateRecordFlagAfterUpload() local
1911 (void)CloudStorageUtils::GetValueFromVBucket(CloudDbConstant::GID_FIELD, record, cloudGid); in UpdateRecordFlagAfterUpload()
1913 logInfo.cloudGid = cloudGid; in UpdateRecordFlagAfterUpload()

12