diff --git a/services/distributeddataservice/adapter/network/src/network_delegate_normal_impl.cpp b/services/distributeddataservice/adapter/network/src/network_delegate_normal_impl.cpp index 5f6d25db0d70b67be96e8117ea9c8e762fcdb5fb..1edda03330c630f75b7f8de452fc6efe86210dd9 100644 --- a/services/distributeddataservice/adapter/network/src/network_delegate_normal_impl.cpp +++ b/services/distributeddataservice/adapter/network/src/network_delegate_normal_impl.cpp @@ -121,7 +121,7 @@ void NetworkDelegateNormalImpl::RegOnNetworkChange() void NetworkDelegateNormalImpl::BindExecutor(std::shared_ptr executors) { - executors_ = std::move(executors); + executors_ = executors; } ExecutorPool::Task NetworkDelegateNormalImpl::GetTask(uint32_t retry) diff --git a/services/distributeddataservice/framework/cloud/cloud_db.cpp b/services/distributeddataservice/framework/cloud/cloud_db.cpp index 863475888ff457cd9be3f5886f66524197822fc5..1ae61b205df6f41785f51c85c6fb89204862d177 100644 --- a/services/distributeddataservice/framework/cloud/cloud_db.cpp +++ b/services/distributeddataservice/framework/cloud/cloud_db.cpp @@ -103,5 +103,6 @@ std::pair CloudDB::GetEmptyCursor(const std::string &table void CloudDB::SetPrepareTraceId(const std::string &prepareTraceId) { (void)prepareTraceId; + return; } } // namespace OHOS::DistributedData \ No newline at end of file diff --git a/services/distributeddataservice/framework/include/changeevent/remote_change_event.h b/services/distributeddataservice/framework/include/changeevent/remote_change_event.h index bf58f4328937a5fa76140409c8baf4be77ed95fe..aa6ca90dcb8f62a48310b321053719c4d0356c0b 100644 --- a/services/distributeddataservice/framework/include/changeevent/remote_change_event.h +++ b/services/distributeddataservice/framework/include/changeevent/remote_change_event.h @@ -33,8 +33,8 @@ public: std::string storeId; std::string deviceId; std::string bundleName; - int changeType = 0; // 0 means CLOUD_DATA_CHANGE std::vector tables; + int changeType = 0; // 0 means CLOUD_DATA_CHANGE }; RemoteChangeEvent(int32_t evtId, DataInfo&& info); diff --git a/services/distributeddataservice/service/cloud/BUILD.gn b/services/distributeddataservice/service/cloud/BUILD.gn index 8253551ed913cf1dd33325b2a28d93482eb83b7f..baa04db86da88888f2ce973400e97128c4fc276a 100755 --- a/services/distributeddataservice/service/cloud/BUILD.gn +++ b/services/distributeddataservice/service/cloud/BUILD.gn @@ -67,6 +67,7 @@ ohos_source_set("distributeddata_cloud") { "access_token:libtokenid_sdk", "device_manager:devicemanagersdk", "hicollie:libhicollie", + "hilog:libhilog", "json:nlohmann_json_static", "kv_store:datamgr_common", "kv_store:distributeddb", diff --git a/services/distributeddataservice/service/cloud/cloud_service_impl.h b/services/distributeddataservice/service/cloud/cloud_service_impl.h index 1c50f2f15853aff7000078b244969973f9904bb7..6025cbce701d2d28259af59c698cc7b6f3bea5bd 100644 --- a/services/distributeddataservice/service/cloud/cloud_service_impl.h +++ b/services/distributeddataservice/service/cloud/cloud_service_impl.h @@ -184,7 +184,6 @@ private: static int32_t SaveNetworkStrategy(const std::vector &values, const HapInfo &hapInfo); void Report(const std::string &faultType, DistributedDataDfx::Fault errCode, const std::string &bundleName, const std::string &appendix); - QueryLastResults AssembleLastResults(const std::vector &databases, const std::map &lastSyncInfos); diff --git a/services/distributeddataservice/service/rdb/rdb_general_store.cpp b/services/distributeddataservice/service/rdb/rdb_general_store.cpp index 73d5c01dedee54152e43c829a190d7b181ddc5e9..afcb4cfd069413f7dde86ae48e2c5f0e770f6ca9 100644 --- a/services/distributeddataservice/service/rdb/rdb_general_store.cpp +++ b/services/distributeddataservice/service/rdb/rdb_general_store.cpp @@ -23,6 +23,7 @@ #include "changeevent/remote_change_event.h" #include "cloud/asset_loader.h" #include "cloud/cloud_db.h" +#include "cloud/cloud_lock_event.h" #include "cloud/cloud_store_types.h" #include "cloud/schema_meta.h" #include "cloud_service.h" diff --git a/services/distributeddataservice/service/rdb/rdb_query.h b/services/distributeddataservice/service/rdb/rdb_query.h index 94d9460f233deea470bf3cec07a79a668d75d3a5..c420e2f632f7b266acc51442d18ed9bf0ec8cd2f 100644 --- a/services/distributeddataservice/service/rdb/rdb_query.h +++ b/services/distributeddataservice/service/rdb/rdb_query.h @@ -100,10 +100,10 @@ private: &RdbQuery::LessThan, &RdbQuery::LessThanOrEqual, &RdbQuery::Distinct, + &RdbQuery::IndexedBy, &RdbQuery::NotContains, &RdbQuery::NotLike, - &RdbQuery::AssetsOnly, - &RdbQuery::IndexedBy + &RdbQuery::AssetsOnly }; static constexpr inline uint32_t DECIMAL_BASE = 10;