1# Distributed Data Management Subsystem Changelog
2
3## cl.distributeddatamgr.1 OH_Rdb_CloudSync Parameter Change
4
5**Access Level**
6
7Public
8
9**Reason for Change**
10
11After the change, the callback also returns the context.
12
13**Change Impact**
14
15This change is a non-compatible change. You need to modify the parameters in **OH_Rdb_CloudSync**.
16
17**API level**
18
1911
20
21**Change Since**
22
23OpenHarmony SDK 4.1.6.5
24
25**Key API/Component Changes**
26
27Before the change:
28
29```c
30int OH_Rdb_CloudSync(OH_Rdb_Store *store, Rdb_SyncMode mode, const char *tables[], uint32_t count,
31    Rdb_SyncCallback *callback);
32```
33After the change:
34
35```c
36int OH_Rdb_CloudSync(OH_Rdb_Store *store, Rdb_SyncMode mode, const char *tables[], uint32_t count,
37    const Rdb_ProgressObserver *observer);
38```
39
40**Adaptation Guide**
41
42You need to add a parameter of the Rdb_ProgressObserver type. The newly added parameter includes the original **callback** field and a **context** field.
43
44```c
45// Define the callback.
46void CloudSyncObserverCallback(void *context, Rdb_ProgressDetails *progressDetails)
47{
48// Do something.
49}
50const Rdb_ProgressObserver observer = { .context = nullptr, .callback = CloudSyncObserverCallback };
51OH_Rdb_CloudSync(storeTestRdbStore_, Rdb_SyncMode::SYNC_MODE_TIME_FIRST, table, TABLE_COUNT, &observer);
52```
53