A data synchronization system and method

A data synchronization and data technology, applied in the computer field, can solve the problems of file rewriting, data loss, limited memory size, etc., and achieve the effect of avoiding read and write conflicts
CN109299146BActive Publication Date: 2020-09-25TRAFFIC CONTROL TECH CO LTD

Patent Information

Authority / Receiving Office
CN Β· China
Patent Type
Patents(China)
Current Assignee / Owner
TRAFFIC CONTROL TECH CO LTD
Publication Date
2020-09-25

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a data synchronization system and a data synchronization method. The system comprises a cache file, a reading pointer file and a writing pointer file, arranged on a hard disk. The cache file is used for storing the data to be cached; A read pointer file for storing a read position of cache data to be synchronized at present; A write pointer file for storing a write positionof cache data to be added at present; When data synchronization is carried out, the system reads the reading pointer file, obtains the reading position of the cache data to be synchronized, and readsthe data to the corresponding cache file according to the reading position to complete data synchronization. When adding new cache data, the system reads the write pointer file, obtains the write position of the cache data to be added, and writes the new cache data to the corresponding cache file according to the write position. The invention can ensure that the read and write of the cached file are not in the same position, thus avoiding the read-write conflict.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field

[0001] The invention relates to the field of computer technology, in particular to a data synchronization system and method. Background technique

[0002] Data synchronization means that when there are multiple data sources at the same level, in order to make the system usable, the data consistency of multiple data sources must be guaranteed. To ensure data consistency, it is necessary to synchronize differential data from a single data source to other data sources. In the actual operating system, various abnormal situations may occur when synchronizing data. For example, a data source is out of service, the network is disconnected, and the main data source updates data faster than other data sources receive speed, resulting in backlog After a large amount of data, data loss and other issues. In this way, when data needs to be synchronized, the difference data is cached at the end of the main data source to avoid the above problems. For the ATS system, the data...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More