mirror of
https://gitee.com/openharmony/xts_dcts
synced 2024-11-23 07:39:59 +00:00
!659 【distributeddatamgr】【master】kv,优化schema数据同步时间
Merge pull request !659 from wuxiaodan/master
This commit is contained in:
commit
b05b100d05
@ -4502,7 +4502,7 @@ export default function kvSyncTestS1() {
|
||||
const query = new factory.Query();
|
||||
query.prefixKey("test_");
|
||||
kvStore.sync(syncDeviceIds, query, PULL, 1000);
|
||||
await sleep(1000);
|
||||
await sleep(4000);
|
||||
|
||||
await kvStore.get(schemaKey, (err, data) => {
|
||||
try {
|
||||
@ -4601,7 +4601,7 @@ export default function kvSyncTestS1() {
|
||||
const query = new factory.Query();
|
||||
query.prefixKey("test_");
|
||||
kvStore.sync(syncDeviceIds, query, PUSH_PULL, 1000);
|
||||
await sleep(1000);
|
||||
await sleep(4000);
|
||||
|
||||
await kvStore.get(schemaKey, (err, data) => {
|
||||
try {
|
||||
|
@ -4935,7 +4935,7 @@ export default function kvSyncTestS1Ets() {
|
||||
const query = new factory.Query();
|
||||
query.prefixKey("test_");
|
||||
kvStore.sync(syncDeviceIds, query, PULL, 1000);
|
||||
await sleep(1000);
|
||||
await sleep(4000);
|
||||
|
||||
await kvStore.get(schemaKey, (err, data) => {
|
||||
try {
|
||||
@ -5034,7 +5034,7 @@ export default function kvSyncTestS1Ets() {
|
||||
const query = new factory.Query();
|
||||
query.prefixKey("test_");
|
||||
kvStore.sync(syncDeviceIds, query, PUSH_PULL, 1000);
|
||||
await sleep(1000);
|
||||
await sleep(4000);
|
||||
|
||||
await kvStore.get(schemaKey, (err, data) => {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user