CN104407808A - Method and device for writing in data - Google Patents

Method and device for writing in data Download PDF

Info

Publication number
CN104407808A
CN104407808A CN201410605966.8A CN201410605966A CN104407808A CN 104407808 A CN104407808 A CN 104407808A CN 201410605966 A CN201410605966 A CN 201410605966A CN 104407808 A CN104407808 A CN 104407808A
Authority
CN
China
Prior art keywords
data
version
written
contrast
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410605966.8A
Other languages
Chinese (zh)
Other versions
CN104407808B (en
Inventor
杜冠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410605966.8A priority Critical patent/CN104407808B/en
Publication of CN104407808A publication Critical patent/CN104407808A/en
Priority to PCT/CN2015/092945 priority patent/WO2016066081A1/en
Application granted granted Critical
Publication of CN104407808B publication Critical patent/CN104407808B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management

Abstract

The invention discloses a method and a device for writing in data, and belongs to the technical field of computers. The method is applied to storage equipment which stores data corresponding to different data identifications in advance. The method comprises the following steps: storage equipment receives a data writing-in request which is sent from a server and caries at least one piece of sub-condition information, data to be written in, the data identification of the data to be written in and the edition information of the data to be written in; the storage equipment obtains a comparison sub-condition corresponding to each piece of sub-condition information carried in the data writing-in request; the union set of the obtained comparison sub-condition is determined as an edition comparison condition; the storage equipment compares the edition information of the data to be written in with the edition information of local data corresponding to the data identification of the data to be written in; if a comparison result of the edition information satisfies an edition comparison condition, a writing-in operation is carried out on the data to be written in. The data storage flexibility of storage equipment can be improved.

Description

The method and apparatus of write data
Technical field
The present invention relates to field of computer technology, particularly a kind of method and apparatus writing data.
Background technology
Along with the development of computer technology, need the data volume of storage increasing, usually store data in memory device, user can write new data by terminal, also can read and/or revise the data in memory device.
Usually, in the distributed memory system of weak consistency or final consistency, when writing data in memory device, comprise and multiplely write scene, such as common write scene, repair write scene, conflict write scene etc., different scene setting of writing has different version contrast conditions, and such as the common version contrast condition write under scene is: if the version of data to be written has the version of the data that identical data identifies higher than what stored in memory device with data to be written, then write data to be written.Writing in the process of data in memory device, server obtains certain data (can be described as data to be written), and obtain the Data Identification of scenario parameters, the version information (as version number) of data to be written, data to be written, wherein, the acquisition process of data to be written is the data sent by terminal by user, or server extracts from memory device, scenario parameters is that server judges when carrying out write data, and version information can by Servers installed or extraction.Then, the data write request carrying data to be written, this Data Identification, versions of data mark and scenario parameters is sent to memory device, when memory device receives data write request, determine the version contrast condition writing scene that scenario parameters is corresponding, and the version of the version and data to be written that have the local data that identical data identifies with data to be written is compared, if both comparative results meet the version contrast condition write under scene corresponding to scenario parameters, then data to be written are stored in memory device, and local data is deleted.
At least there is following problem in prior art:
Write in memory device in the process of data, need to write the different data write conditions of scene setting to different, when needs increase certain write scene time, need to arrange accordingly memory device, such as arrange this write scene under data write conditions etc., otherwise data to be written cannot be stored in this memory device by memory device under this writes scene, thus, make the dirigibility of memory device storage data poor.
Summary of the invention
Embodiments provide a kind of method and apparatus writing data, the method and device may be used for the problem of the dirigibility solving data database storing in prior art, and described technical scheme is as follows:
First aspect, provide a kind of method writing data, described method is applied in memory device, and store the data that different pieces of information mark is corresponding in described memory device, described method comprises:
The data write request carrying at least one sub-conditional information, data to be written, the Data Identification of described data to be written and the version information of described data to be written of described memory device reception server transmission;
Described memory device obtains the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in described data write request, subconditional for the contrast of acquisition union is defined as version contrast condition;
The version information of local data corresponding with described Data Identification for the version information of described data to be written contrasts by described memory device, if the comparative result of version information meets described version contrast condition, then write operation is carried out to described data to be written.
In conjunction with first aspect, in the first possibility implementation of first aspect, described memory device obtains the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in described data write request, subconditional for the contrast of acquisition union is defined as version contrast condition, comprises:
Described memory device is according to the corresponding relation of the sub-condition of the contrast prestored and sub-conditional information, obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in described data write request respectively, subconditional for the contrast of acquisition union is defined as version contrast condition.
In conjunction with first aspect, in the second possibility implementation of first aspect, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then the sub-condition of described contrast is: described first version equals the described second edition higher than the described second edition, described first version, described first version cannot compare with the described second edition lower than the described second edition, described first version in one.
Second aspect, provide a kind of method writing data, described method is applied in server, and be previously stored with multiple version contrast condition and the sub-condition of multiple contrast in described server, described method comprises:
Server obtains version contrast condition corresponding to data to be written, the Data Identification of described data to be written, the version information of described data to be written and described data to be written;
Described server, in the sub-condition of the contrast prestored, determines that at least one contrasts sub-condition, and the subconditional union of the contrast determined is described version contrast condition;
Described server sends the data write request carrying described at least one contrast subconditional sub-conditional information, described data to be written, the Data Identification of described data to be written and the version information of described data to be written to memory device.
In conjunction with second aspect, in the first possibility implementation of second aspect, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then the sub-condition of described contrast is: described first version equals the described second edition higher than the described second edition, described first version, described first version cannot compare with the described second edition lower than the described second edition, described first version in one.
The third aspect, provides a kind of memory device, and described memory device comprises:
Receiver module, for the data write request carrying at least one sub-conditional information, data to be written, the Data Identification of described data to be written and the version information of described data to be written that reception server sends;
Determination module, for obtaining the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in described data write request, is defined as version contrast condition by subconditional for the contrast of acquisition union;
Writing module, for the version information of local data corresponding with described Data Identification for the version information of described data to be written is contrasted, if the comparative result of version information meets described version contrast condition, then write operation is carried out to described data to be written.
In conjunction with the third aspect, in the first possibility implementation of the third aspect, described determination module, for:
According to the corresponding relation of the sub-condition of the contrast prestored and sub-conditional information, obtain the sub-condition of contrast that every sub-conditional information carrying in described data write request is corresponding respectively, subconditional for the contrast of acquisition union is defined as version contrast condition.
In conjunction with the third aspect, in the second possibility implementation of the third aspect, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then the sub-condition of described contrast is: described first version equals the described second edition higher than the described second edition, described first version, described first version cannot compare with the described second edition lower than the described second edition, described first version in one.
Fourth aspect, provides a kind of server, and described server comprises:
Acquisition module, for obtaining version contrast condition corresponding to data to be written, the Data Identification of described data to be written, the version information of described data to be written and described data to be written;
Determination module, in the sub-condition of the contrast prestored, determines that at least one contrasts sub-condition, and the subconditional union of the contrast determined is described version contrast condition;
Sending module, for sending the data write request carrying described at least one contrast subconditional sub-conditional information, described data to be written, the Data Identification of described data to be written and the version information of described data to be written to memory device.
In conjunction with fourth aspect, in the first possibility implementation of fourth aspect, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then the sub-condition of described contrast is: described first version equals the described second edition higher than the described second edition, described first version, described first version cannot compare with the described second edition lower than the described second edition, described first version in one.
5th aspect, provide a kind of system writing data, described system comprises memory device and server, wherein:
Described memory device, for the data write request carrying at least one sub-conditional information, data to be written, the Data Identification of described data to be written and the version information of described data to be written that reception server sends; Obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in described data write request, subconditional for the contrast of acquisition union is defined as version contrast condition; The version information of local data corresponding with described Data Identification for the version information of described data to be written is contrasted, if the comparative result of version information meets described version contrast condition, then write operation is carried out to described data to be written;
Described server, for obtaining version contrast condition corresponding to data to be written, the Data Identification of described data to be written, the version information of described data to be written and described data to be written; In the sub-condition of the contrast prestored, determine that at least one contrasts sub-condition, the subconditional union of the contrast determined is described version contrast condition; The data write request carrying described at least one contrast subconditional sub-conditional information, described data to be written, the Data Identification of described data to be written and the version information of described data to be written is sent to memory device.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
In the embodiment of the present invention, what reception server sent carries at least one sub-conditional information, data to be written, the data write request of the Data Identification of data to be written and the version information of data to be written, obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, subconditional for the contrast of acquisition union is defined as version contrast condition, the version information of local data corresponding with Data Identification for the version information of data to be written is contrasted, if the comparative result of version information meets version contrast condition, then write operation is carried out to data to be written, like this, even if the process of write data adds new version contrast condition, also can not need to arrange accordingly memory device, the object writing data in memory device can be completed, thus, the dirigibility that memory device stores data can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram writing data that the embodiment of the present invention provides;
Fig. 2 is a kind of method flow diagram writing data that the embodiment of the present invention provides;
Fig. 3 is a kind of method flow diagram writing data that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of system that the embodiment of the present invention provides;
Fig. 5 is a kind of memory device structural representation that the embodiment of the present invention provides;
Fig. 6 is a kind of server architecture schematic diagram that the embodiment of the present invention provides;
Fig. 7 is a kind of memory device structural representation that the embodiment of the present invention provides;
Fig. 8 is a kind of server architecture schematic diagram that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Because different write scene, the executive condition performing write operation is different, and the information describing executive condition is called version contrast condition.Server needs version contrast condition to send to memory device, so that memory device determines whether to perform write operation according to version contrast condition.
Such as writing in reparation thisly writes in scene, and the version contrast condition performing write operation is: the version of data to be written has had the version of data higher than this locality, or the version of data to be written equals the local version having had data.If meet version contrast condition, then perform write operation; Otherwise do not perform.And common writing thisly is write in scene, version contrast condition is: the version of data to be written has had the version of data higher than this locality, can perform write operation.And write at any version and thisly write in scene, version contrast condition is: no matter which version updating of version, and even version cannot compare, and all can perform write operation.Wherein, local had the Data Identification of data identical with the Data Identification of data to be written.
The version contrast condition writing scene due to difference is often not identical yet.In prior art, write scene according to different, need to compare complicated Logic judgment and just can draw the conclusion whether performing write operation.In addition, also there are the following problems for prior art.
(1) if use different write orders, then interface is more, and management complexity improves;
(2) if use identical order, use scenes parameter is needed to show to write scene, also there is the problem of distributed storage device and the strong coupling of Business treatment logic, namely memory device needs to understand the different meaning writing scene, use distinct principle to process accordingly according to different scenes of writing, be unfavorable for using third party's memory device.
(3) once newly-increased write scene, just have to newly increase interface, or the setting of amendment memory device, increase and the process complexity of scene is write to this.
The embodiment of the present invention proposes a kind of new thinking, and server contrasts condition version.Such as, contrast sub-condition A and sub-condition B is split into repairing the version contrast condition write.Wherein, contrasting sub-condition A is: the version of data to be written has had the version of data higher than this locality; Contrasting sub-condition B is: the version of data to be written equals the local version having had data.
Memory device merges the two after receiving these two the sub-conditions of contrast.Be equivalent to regenerate the contrast of the version before splitting condition.
After using the scheme that provides of the embodiment of the present invention, no matter be anyly write scene, server only needs to send any one in 4 sub-conditions of contrast below: the version of (1) data to be written has had the version of data higher than this locality; (2) or the version of data to be written equal the local version having had data; (3) or the version of data to be written had the version of data lower than this locality; Or the version of data to be written and local had the version of data to compare (4).Therefore the embodiment of the present invention simplifies flow process.Solve the problems of the prior art above-mentioned.
In the embodiment of the present invention, version is higher is the meaning that version is newer, can by version number relatively perform this judge.
Embodiment one
Embodiments provide a kind of method writing data, the method can be realized jointly by server and memory device.
As shown in Figure 1, in the method, the treatment scheme of memory device can comprise following step:
Step 101, the data write request carrying at least one sub-conditional information, data to be written, the Data Identification of data to be written and the version information of data to be written of memory device reception server transmission.
Step 102, memory device obtains the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, subconditional for the contrast of acquisition union is defined as version contrast condition.
Step 103, the version information of local data corresponding with Data Identification for the version information of data to be written contrasts by memory device, if the comparative result of version information meets version contrast condition, then carries out write operation to data to be written.
As shown in Figure 2, in the method, the treatment scheme of server can comprise following step:
Step 201, server obtains version contrast condition corresponding to data to be written, the Data Identification of data to be written, the version information of data to be written and data to be written.
Step 202, server, in the sub-condition of the contrast prestored, determines that at least one contrasts sub-condition, and the subconditional union of the contrast determined is version contrast condition.
Step 203, server sends the data write request carrying at least one contrast subconditional sub-conditional information, data to be written, the Data Identification of data to be written and the version information of data to be written to memory device.
In the embodiment of the present invention, what memory device reception server sent carries at least one sub-conditional information, data to be written, the data write request of the Data Identification of data to be written and the version information of data to be written, obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, subconditional for the contrast of acquisition union is defined as version contrast condition, the version information of local data corresponding with Data Identification for the version information of data to be written is contrasted, if the comparative result of version information meets version contrast condition, then write operation is carried out to data to be written, like this, even if the process of write data adds new version contrast condition, also can not need to arrange accordingly memory device, the object writing data in memory device can be completed, thus, the dirigibility that memory device stores data can be improved.
Embodiment two
Embodiments provide a kind of method writing data, the method can be realized jointly by server and memory device.Server wherein can be any server for writing data in memory device, multiple version contrast condition and the sub-condition of multiple contrast can be previously stored with in this server, the data that different pieces of information mark is corresponding in memory device, can be previously stored with.
As shown in Figure 3, the treatment scheme of the method can comprise following step:
Step 301, server obtains version contrast condition corresponding to data to be written, the Data Identification of data to be written, the version information of data to be written and data to be written.
Wherein, Data Identification can be the title etc. of data, and version information can be version number, version name etc.
In force, data can be write by server in memory device in several ways, such as, user writes data by server in memory device, or server detects that in memory device, mistake appears in certain data, can these data in memory device be repaired.Wherein, memory device can be an independently data storage device, the storage system that also can be made up of multiple memory device, such as distributed memory system etc., the data stored in memory device generally include multiple copy, such as three copies, thus the reliability ensureing data, memory device can arrange multiple memory node and store above-mentioned multiple copy respectively.As shown in Figure 4, user is write in memory device to the situation of data by server, user can write certain data (i.e. data to be written), data to be written can be the new datas that user writes, also can be the data after certain data in memory device are modified, write after data to be written complete, data to be written can be sent to server, after server receives data to be written, the Data Identification of these data to be written can be extracted, then version information can be set for data to be written, because data to be written are supplied to server by user by terminal, server can determine that the scene of writing writing data is commonly write scene, and then, server determines that common version corresponding to scene of writing contrasts condition.Wherein, the scene of writing of write data comprises multiple, such as commonly write scene, repair write scene, scene etc. is write in conflict, different scene setting of writing has different version contrast conditions.Version information can be by Servers installed, such as, the new data of user one by terminal composes send to the server X in server as shown in Figure 4, the version information of these data can be set to (X by server X, 1), if user reads certain data in memory device, and these data are modified, after having revised, the data of amendment can be sent to server, server extracts the version information before this data modification, if (X, 1), this server is server X, then server X can arrange the version information of amended data is (X, 2), if the version information before this data modification is (X, 1), this server is server Y, then server Y can arrange the version information of amended data is (X, 1) (Y, 1), if the version information before this data modification is (X, 1), this server is server Z, then server Z can arrange the version information of amended data is (X, 1) (Z, 1).Can determine that version information is (X, 2), (X, 1) (Y by above-mentioned version information, 1) or the data of (X, 1) (Z, 1), all be (X based on version information, 1) data are modified, therefore, and version information (X, 2), (X, 1) (Y, 1) and (X, 1) (Z, 1) all higher than version information (X, 1), version information (X, 2), (X, 1) (Y, 1) and between (X, 1) (Z, 1) cannot compare.
Server is detected that in memory device, mistake appears in certain data, situation about can repair these data in memory device, as shown in Figure 4, when user reads certain data by terminal to server request, if terminal reads in the process of data, there is mistake in data, terminal can send error message to server, after server receives error message, the Data Identification of these data can be extracted, then can send to memory device and obtain data corresponding to this Data Identification, as data to be written, then the version information of data to be written can be mentioned, now server can determine that the scene of writing of the write data needing to carry out is that scene is write in reparation, server obtains to repair writes edition comparison condition corresponding to scene.For other situation, as the situation etc. that scene is write in conflict, the version such as non-writes scene, similar with said process, detailed process see foregoing, can not repeat them here.Wherein, the version that the data that can be two identical data marks are write in conflict cannot compare, and the non-version that waits writes the copy that can comprise multiple different editions for the copy storing the data of same Data Identification in memory device.For the situation that scene is write in conflict, the version such as non-writes scene, the terminal needing user to select a version or user to use determines a version according to the time that data write, as the version of these data in memory device, and the data of this version are used to override the data of different editions.
Step 302, server, in the sub-condition of the contrast prestored, determines that at least one contrasts sub-condition, and the subconditional union of the contrast determined is version contrast condition.
In force, the sub-condition of multiple contrast can be previously stored with in server, server can by the sub-condition of multiple contrast, the version got contrast condition is split, obtain at least one and contrast sub-condition, visible, if the subconditional union of the contrast calculated, then the result of calculation obtained is version contrast condition.
Alternatively, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then contrasting sub-condition is: first version equals the second edition higher than the second edition, first version, first version cannot compare with the second edition lower than the second edition, first version in one.Wherein, data to be written can be arbitrary data.
The sub-condition of multiple contrasts in server can be that the mode of corresponding relation by contrasting sub-condition and sub-conditional information stores, and wherein, sub-conditional information can be sub-condition identity etc.The corresponding relation contrasting sub-condition and sub-conditional information can store in table form, represent first version with B1, B2 represents first version, and sub-conditional information is sub-condition identity, then different in above-mentioned steps 301 scene setting of writing has different version contrast conditions, can be as shown in table 1.
Table 1
Write scene Version contrast condition
Commonly write scene B1 > B2: write data to be written
Scene is write in reparation B1 >=B2: write data to be written
Scene is write in conflict The data write storage device of the version that user determines
Accordingly, the corresponding relation of the sub-condition of above-mentioned contrast and sub-conditional information can be as shown in table 2.
Table 2
Sub-conditional information Contrast sub-condition
A1 B1>B2
A2 B1=B2
A3 B1<B2
A4 B1 and B2 cannot compare
If version contrast condition is: B1 >=B2, writes data to be written, then can be determined by above-mentioned table 2, the corresponding sub-condition of contrast is B1>B2 and B1=B2, and sub-conditional information is respectively A1, A2.
Sub-conditional information can represent by binary numeral, as 0 and 1, can arrange a binary numeral for data to be written, concrete, and a byte has 8 bit binary value usually, as shown in table 3.
Table 3
bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
Bit 0 wherein can be used, bit 1, bit 2 and bit 3 represents the sub-condition of above-mentioned multiple contrast, such as, if be 1 in bit 0, then represent that first version is lower than the second edition, if be 1 in bit 1, then represent that first version equals the second edition, if be 1 in bit 2, then represent that first version is higher than the second edition, if be 1 in bit 3, then represent that first version cannot compare with the second edition, pass through said method, if version contrast condition is " B1 >=B2: write data to be written ", then can be determined by above-mentioned table 2, the corresponding sub-condition of contrast is B1>B2 and B1=B2, therefore, can determine to be all 1 in bit 1 and bit 2, other position is all 0, thus to obtain binary numeral be 00000110, being converted to decimal value is 6, server can using numerical value 6 as the subconditional sub-conditional information of the contrast determined.
Step 303, server sends the data write request carrying at least one contrast subconditional sub-conditional information, data to be written, the Data Identification of data to be written and the version information of data to be written to memory device.
In force, server can by the contrast determined sub-condition, by above-mentioned table 2, obtain the sub-conditional information that the sub-condition of each contrast is corresponding, this sub-conditional information also can be the binary numeral determined of the above-mentioned mode as table 3 or decimal value, and sub-conditional information can also be the sub-condition of corresponding contrast.Server can pass through this sub-conditional information, data to be written, the Data Identification of data to be written and the version information of data to be written, generates data write request, sends to memory device.
Data write request can be the order of certain form, can binary numeral for sub-conditional information, data write request can be Write (data, version, mask), wherein, Write can represent command keyword, data can represent data to be written, and version can represent the version information of data to be written, and mask can represent above-mentioned binary numeral or decimal value etc.
Step 304, the data write request carrying at least one sub-conditional information, data to be written, the Data Identification of data to be written and the version information of data to be written of memory device reception server transmission.
Step 305, memory device obtains the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, subconditional for the contrast of acquisition union is defined as version contrast condition.
In force, sub-conditional information can be the sub-condition of corresponding contrast, after memory device receives data write request, sub-conditional information wherein can be extracted, namely sub-condition is contrasted, the subconditional union of the contrast that memory device can calculate, and the result of calculation obtained is defined as version contrast condition.
Alternatively, sub-conditional information can be sub-condition identity or a numerical value.If fruit conditional information is sub-condition identity, then the processing procedure of above-mentioned steps 305 can comprise following content: according to the corresponding relation of the sub-condition of the contrast prestored and sub-conditional information, obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request respectively, subconditional for the contrast of acquisition union is defined as version contrast condition.
In force, the corresponding relation of the sub-condition of contrast and sub-conditional information is previously stored with in memory device, this corresponding relation can be as shown in table 2, after memory device receives data write request, sub-conditional information wherein can be extracted, then, can search in the such as sub-condition of contrast of table 2 and the corresponding relation of sub-conditional information, the sub-condition of contrast that every the sub-conditional information obtaining extracting is corresponding, can be defined as version contrast condition by subconditional for the contrast obtained union.
If fruit conditional information is a numerical value, corresponding processing procedure can be: for numerical value 6, and memory device can convert numerical value 6 to binary numeral, obtain 00000110, can pass through above-mentioned table 3, obtain being all 1 in bit 1 and bit 2, the corresponding sub-condition of contrast is B1>B2 and B1=B2, memory device calculates the subconditional union of above-mentioned contrast, obtain B1 >=B2, thus, obtain version contrast condition, if i.e. B1 >=B2, then write data to be written.If be the non-situation waiting version to write, can determine in multiple version information, data corresponding to the version information that number is maximum are as data to be written, version due to these data to be written may be greater than or less than the version of local data, or both or cannot compare, therefore, mask can be 0,000 1101, the processing procedure of this situation see foregoing, can not repeat them here.
Step 306, the version information of local data corresponding with Data Identification for the version information of data to be written contrasts by memory device, if the comparative result of version information meets version contrast condition, then carries out write operation to data to be written.
In force, memory device can by the version information of the version information of data to be written, local data that Data Identification is corresponding and version contrast condition, judge whether the version information of the version information of data to be written and local data corresponding to Data Identification meets version contrast condition, if met, then memory device can send the successful notification message of write to server, if do not met, then server can send the failed notification message of write or error message to server.
Such as, version contrast condition is: if B1 >=B2, then write data to be written.The version information of data to be written and the version information of local data contrast by memory device, if the version of data to be written is higher than the version of local data, or the version of data to be written equals the version of local data, then data to be written are written in memory device, and this local data is deleted, if the version of data to be written is lower than the version of local data, then can cancels and data to be written are written in memory device.
Can be obtained by foregoing, data to be written are being carried out in the process of write operation, first can by data to be written corresponding write scene, determine version contrast condition, then this version contrast condition can be split into the sub-condition of one or more contrast, send to memory device, memory device can ask for the subconditional union of above-mentioned one or more contrast, obtain above-mentioned version contrast condition, finally, the version information of the version information of data to be written and local data can be contrasted, if both comparing results meet version contrast condition, then write operation is carried out to data to be written, like this, can not being needed in memory device, various version corresponding to scene of writing is set and contrasts condition, and only need to obtain to contrast accordingly sub-condition and can complete write operation to data to be written, improve the dirigibility that memory device stores data to a certain extent.In the embodiment of the present invention, what memory device reception server sent carries at least one sub-conditional information, data to be written, the data write request of the Data Identification of data to be written and the version information of data to be written, obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, subconditional for the contrast of acquisition union is defined as version contrast condition, the version information of local data corresponding with Data Identification for the version information of data to be written is contrasted, if the comparative result of version information meets version contrast condition, then write operation is carried out to data to be written, like this, even if the process of write data adds new version contrast condition, also can not need to arrange accordingly memory device, the object writing data in memory device can be completed, thus, the dirigibility that memory device stores data can be improved.
It should be noted that, in the present embodiment and other embodiments, memory device can be the combination of memory controller (Storage Controller) and storage medium, such as memory controller and hard disk.Also can be the storage medium with calculation function, be similar to the hard disk being integrated with segment controller function, such as IP (InternetProtocol, the agreement interconnected between network) dish.Why need arithmetic capability, be because the version information of the version information needing the to perform data to be written local data corresponding with the Data Identification of data to be written carries out the operation contrasted, and send the instruction of write operation.In other words, as long as that there is such function and there is the equipment of memory function, be exactly so-called memory device in the application.
Embodiment three
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of memory device, and as shown in Figure 5, this memory device comprises:
Receiver module 510, for the data write request carrying at least one sub-conditional information, data to be written, the Data Identification of data to be written and the version information of data to be written that reception server sends;
Determination module 520, for obtaining the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, is defined as version contrast condition by subconditional for the contrast of acquisition union;
Writing module 530, for being contrasted by the version information of local data corresponding with Data Identification for the version information of data to be written, if the comparative result of version information meets version contrast condition, then carries out write operation to data to be written.
Alternatively, determination module 520, for:
According to the corresponding relation of the sub-condition of the contrast prestored and sub-conditional information, obtain the sub-condition of contrast that every sub-conditional information carrying in data write request is corresponding respectively, subconditional for the contrast of acquisition union is defined as version contrast condition.
Alternatively, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then contrasting sub-condition is: first version equals the second edition higher than the second edition, first version, first version cannot compare with the second edition lower than the second edition, first version in one.
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of server, and as shown in Figure 6, this server comprises:
Acquisition module 610, for obtaining version contrast condition corresponding to data to be written, the Data Identification of data to be written, the version information of data to be written and data to be written;
Determination module 620, in the sub-condition of the contrast prestored, determines that at least one contrasts sub-condition, and the subconditional union of the contrast determined is version contrast condition;
Sending module 630, for sending the data write request carrying at least one contrast subconditional sub-conditional information, data to be written, the Data Identification of data to be written and the version information of data to be written to memory device.
Alternatively, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then contrasting sub-condition is: first version equals the second edition higher than the second edition, first version, first version cannot compare with the second edition lower than the second edition, first version in one.
In the embodiment of the present invention, what memory device reception server sent carries at least one sub-conditional information, data to be written, the data write request of the Data Identification of data to be written and the version information of data to be written, obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, subconditional for the contrast of acquisition union is defined as version contrast condition, the version information of local data corresponding with Data Identification for the version information of data to be written is contrasted, if the comparative result of version information meets version contrast condition, then write operation is carried out to data to be written, like this, even if the process of write data adds new version contrast condition, also can not need to arrange accordingly memory device, the object writing data in memory device can be completed, thus, the dirigibility that memory device stores data can be improved.
It should be noted that: the device of the write data that above-described embodiment provides is when writing data, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by server or memory device is divided into different functional modules, to complete all or part of function described above.In addition, the device of the write data that above-described embodiment provides belongs to same design with the embodiment of the method for write data, and its specific implementation process refers to embodiment of the method, repeats no more here.
Embodiment four
Based on identical technical conceive, a kind of system writing data that the embodiment of the present invention also provides, it is characterized in that, this system comprises memory device and server, wherein:
Memory device, for the data write request carrying at least one sub-conditional information, data to be written, the Data Identification of data to be written and the version information of data to be written that reception server sends; Obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, subconditional for the contrast of acquisition union is defined as version contrast condition; The version information of local data corresponding with Data Identification for the version information of data to be written is contrasted, if the comparative result of version information meets version contrast condition, then write operation is carried out to data to be written;
Server, for obtaining version contrast condition corresponding to data to be written, the Data Identification of data to be written, the version information of data to be written and data to be written; In the sub-condition of the contrast prestored, determine that at least one contrasts sub-condition, the subconditional union of the contrast determined is version contrast condition; The data write request carrying at least one contrast subconditional sub-conditional information, data to be written, the Data Identification of data to be written and the version information of data to be written is sent to memory device.
In the embodiment of the present invention, what memory device reception server sent carries at least one sub-conditional information, data to be written, the data write request of the Data Identification of data to be written and the version information of data to be written, obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, subconditional for the contrast of acquisition union is defined as version contrast condition, the version information of local data corresponding with Data Identification for the version information of data to be written is contrasted, if the comparative result of version information meets version contrast condition, then write operation is carried out to data to be written, like this, even if the process of write data adds new version contrast condition, also can not need to arrange accordingly memory device, the object writing data in memory device can be completed, thus, the dirigibility that memory device stores data can be improved.
Embodiment five
Please refer to Fig. 7, it illustrates the memory device structural representation involved by the embodiment of the present invention, this memory device may be used for the method implementing the write data provided in above-described embodiment.Specifically:
Memory device 1000 can include one or more computer-readable recording mediums storer 120, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the memory device structure shown in figure does not form the restriction to memory device, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by running, thus performs the application of various function and data processing.Storer 120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data etc.) etc. created according to the use of memory device 1000.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 also comprises Memory Controller, to provide the access of processor 180 pairs of storeies 120.
Memory device 1000 also can comprise at least one sensor 150, such as motion sensor and other sensors.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for the application (such as magnetometer pose calibrating), Vibration identification correlation function (such as knocking) etc. that identify memory device attitude; As for memory device 1000 also other sensors such as configurable barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Although there is shown wireless communication unit, be understandable that, it does not belong to must forming of memory device 1000, can omit in the scope not changing disclosed essence as required completely.
Processor 180 is control centers of memory device 1000, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 120 and/or module is stored in by running or performing, and call the data be stored in storer 120, perform various function and the process data of memory device 1000, thus integral monitoring is carried out to memory device.Optionally, processor 180 can comprise one or more process core.
Memory device 1000 also comprises the power supply 190 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
In the present embodiment, memory device also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to perform described more than one or one routine package containing the instruction for carrying out the method that disclosure embodiment provides by more than one or one processor:
The data write request carrying at least one sub-conditional information, data to be written, the Data Identification of data to be written and the version information of data to be written of reception server transmission;
Obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, subconditional for the contrast of acquisition union is defined as version contrast condition;
The version information of local data corresponding with Data Identification for the version information of data to be written is contrasted, if the comparative result of version information meets version contrast condition, then write operation is carried out to data to be written.
Alternatively, obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, subconditional for the contrast of acquisition union be defined as version contrast condition, comprise:
According to the corresponding relation of the sub-condition of the contrast prestored and sub-conditional information, obtain the sub-condition of contrast that every sub-conditional information carrying in data write request is corresponding respectively, subconditional for the contrast of acquisition union is defined as version contrast condition.
Alternatively, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then contrasting sub-condition is: first version equals the second edition higher than the second edition, first version, first version cannot compare with the second edition lower than the second edition, first version in one.
In the embodiment of the present invention, what memory device reception server sent carries at least one sub-conditional information, data to be written, the data write request of the Data Identification of data to be written and the version information of data to be written, obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, subconditional for the contrast of acquisition union is defined as version contrast condition, the version information of local data corresponding with Data Identification for the version information of data to be written is contrasted, if the comparative result of version information meets version contrast condition, then write operation is carried out to data to be written, like this, even if the process of write data adds new version contrast condition, also can not need to arrange accordingly memory device, the object writing data in memory device can be completed, thus, the dirigibility that memory device stores data can be improved.
Embodiment six
Please refer to Fig. 8, it illustrates the server architecture schematic diagram involved by the embodiment of the present invention, this server may be used for the method implementing the write data provided in above-described embodiment.Specifically:
Server 1100 can produce larger difference because of configuration or performance difference, one or more central processing units (central processing units can be comprised, CPU) 1122 (such as, one or more processors) and storer 1132, one or more store the storage medium 1130 (such as one or more mass memory units) of application program 1142 or data 1144.Wherein, storer 1132 and storage medium 1130 can be of short duration storages or store lastingly.The program being stored in storage medium 1130 can comprise one or more modules (illustrating not shown), and each module can comprise a series of command operatings in server.Further, central processing unit 1122 can be set to communicate with storage medium 1130, and server 1100 performs a series of command operatings in storage medium 1130.Server 1100 can also comprise one or more power supplys 1126, one or more wired or wireless network interfaces 1150, one or more IO interface 1158, one or more keyboards 1156, and/or, one or more operating systems 1141, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc.Specifically in the present embodiment, server includes storer, and one or more program, one of them or more than one program are stored in storer, and more than one or one program can comprise one or more modules, and each module can comprise a series of command operatings in server, and be configured to perform this more than one or one routine package containing the instruction for carrying out following operation by more than one or one processor:
Obtain the version contrast condition that data to be written, the Data Identification of data to be written, the version information of data to be written and data to be written are corresponding;
In the sub-condition of the contrast prestored, determine that at least one contrasts sub-condition, the subconditional union of the contrast determined is version contrast condition;
The data write request carrying at least one contrast subconditional sub-conditional information, data to be written, the Data Identification of data to be written and the version information of data to be written is sent to memory device.
Alternatively, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then contrasting sub-condition is: first version higher than the second edition, first version equals the second edition, first version cannot compare with the second edition lower than the second edition or first version.
In the embodiment of the present invention, what memory device reception server sent carries at least one sub-conditional information, data to be written, the data write request of the Data Identification of data to be written and the version information of data to be written, obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in data write request, subconditional for the contrast of acquisition union is defined as version contrast condition, the version information of local data corresponding with Data Identification for the version information of data to be written is contrasted, if the comparative result of version information meets version contrast condition, then write operation is carried out to data to be written, like this, even if the process of write data adds new version contrast condition, also can not need to arrange accordingly memory device, the object writing data in memory device can be completed, thus, the dirigibility that memory device stores data can be improved.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. write a method for data, it is characterized in that, described method is applied in memory device, and be previously stored with the data that different pieces of information mark is corresponding in described memory device, described method comprises:
The data write request carrying at least one sub-conditional information, data to be written, the Data Identification of described data to be written and the version information of described data to be written of described memory device reception server transmission;
Described memory device obtains the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in described data write request, subconditional for the contrast of acquisition union is defined as version contrast condition;
The version information of local data corresponding with the Data Identification of described data to be written for the version information of described data to be written contrasts by described memory device, if the comparative result of version information meets described version contrast condition, then write operation is carried out to described data to be written.
2. method according to claim 1, is characterized in that, described memory device obtains the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in described data write request, subconditional for the contrast of acquisition union is defined as version contrast condition, comprises:
Described memory device is according to the corresponding relation of the sub-condition of the contrast prestored and sub-conditional information, obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in described data write request respectively, subconditional for the contrast of acquisition union is defined as version contrast condition.
3. method according to claim 1, it is characterized in that, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then the sub-condition of described contrast is: described first version equals the described second edition higher than the described second edition, described first version, described first version cannot compare with the described second edition lower than the described second edition, described first version in one.
4. write a method for data, it is characterized in that, described method is applied in server, and be previously stored with multiple version contrast condition and the sub-condition of multiple contrast in described server, described method comprises:
Server obtains version contrast condition corresponding to data to be written, the Data Identification of described data to be written, the version information of described data to be written and described data to be written;
Described server, in the sub-condition of the contrast prestored, determines that at least one contrasts sub-condition, and the subconditional union of the contrast determined is described version contrast condition;
Described server sends the data write request carrying described at least one contrast subconditional sub-conditional information, described data to be written, the Data Identification of described data to be written and the version information of described data to be written to memory device.
5. method according to claim 4, it is characterized in that, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then the sub-condition of described contrast is: described first version equals the described second edition higher than the described second edition, described first version, described first version cannot compare with the described second edition lower than the described second edition, described first version in one.
6. a memory device, is characterized in that, described memory device comprises:
Receiver module, for the data write request carrying at least one sub-conditional information, data to be written, the Data Identification of described data to be written and the version information of described data to be written that reception server sends;
Determination module, for obtaining the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in described data write request, is defined as version contrast condition by subconditional for the contrast of acquisition union;
Writing module, for the version information of local data corresponding with described Data Identification for the version information of described data to be written is contrasted, if the comparative result of version information meets described version contrast condition, then write operation is carried out to described data to be written.
7. memory device according to claim 6, is characterized in that, described determination module, for:
According to the corresponding relation of the sub-condition of the contrast prestored and sub-conditional information, obtain the sub-condition of contrast that every sub-conditional information carrying in described data write request is corresponding respectively, subconditional for the contrast of acquisition union is defined as version contrast condition.
8. memory device according to claim 6, it is characterized in that, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then the sub-condition of described contrast is: described first version equals the described second edition higher than the described second edition, described first version, described first version cannot compare with the described second edition lower than the described second edition, described first version in one.
9. a server, is characterized in that, described server comprises:
Acquisition module, for obtaining version contrast condition corresponding to data to be written, the Data Identification of described data to be written, the version information of described data to be written and described data to be written;
Determination module, in the sub-condition of the contrast prestored, determines that at least one contrasts sub-condition, and the subconditional union of the contrast determined is described version contrast condition;
Sending module, for sending the data write request carrying described at least one contrast subconditional sub-conditional information, described data to be written, the Data Identification of described data to be written and the version information of described data to be written to memory device.
10. server according to claim 9, it is characterized in that, if first version is the version that the version information of data to be written is corresponding, the second edition is have version corresponding to the version information of the local data that identical data identifies with data to be written, then the sub-condition of described contrast is: described first version equals the described second edition higher than the second edition, described first version, described first version cannot compare with the described second edition lower than the described second edition, described first version in one.
11. 1 kinds of systems writing data, it is characterized in that, described system comprises memory device and server, wherein:
Described memory device, for the data write request carrying at least one sub-conditional information, data to be written, the Data Identification of described data to be written and the version information of described data to be written that reception server sends; Obtain the sub-condition of contrast that often a sub-conditional information is corresponding of carrying in described data write request, subconditional for the contrast of acquisition union is defined as version contrast condition; The version information of local data corresponding with described Data Identification for the version information of described data to be written is contrasted, if the comparative result of version information meets described version contrast condition, then write operation is carried out to described data to be written;
Described server, for obtaining version contrast condition corresponding to data to be written, the Data Identification of described data to be written, the version information of described data to be written and described data to be written; In the sub-condition of the contrast prestored, determine that at least one contrasts sub-condition, the subconditional union of the contrast determined is described version contrast condition; The data write request carrying described at least one contrast subconditional sub-conditional information, described data to be written, the Data Identification of described data to be written and the version information of described data to be written is sent to memory device.
CN201410605966.8A 2014-10-31 2014-10-31 The method and apparatus for writing data Active CN104407808B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410605966.8A CN104407808B (en) 2014-10-31 2014-10-31 The method and apparatus for writing data
PCT/CN2015/092945 WO2016066081A1 (en) 2014-10-31 2015-10-27 Data writing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410605966.8A CN104407808B (en) 2014-10-31 2014-10-31 The method and apparatus for writing data

Publications (2)

Publication Number Publication Date
CN104407808A true CN104407808A (en) 2015-03-11
CN104407808B CN104407808B (en) 2017-10-10

Family

ID=52645441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410605966.8A Active CN104407808B (en) 2014-10-31 2014-10-31 The method and apparatus for writing data

Country Status (2)

Country Link
CN (1) CN104407808B (en)
WO (1) WO2016066081A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117489A (en) * 2015-09-21 2015-12-02 北京金山安全软件有限公司 Database management method and device and electronic equipment
WO2016066081A1 (en) * 2014-10-31 2016-05-06 华为技术有限公司 Data writing method and device
CN106708651A (en) * 2016-11-16 2017-05-24 北京三快在线科技有限公司 Erasure code-based partial write-in method and device, storage medium and equipment
CN112035378A (en) * 2020-09-03 2020-12-04 北京百瑞互联技术有限公司 Method and system for quickly writing data into FLASH FLASH memory

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6047357A (en) * 1995-01-27 2000-04-04 Digital Equipment Corporation High speed method for maintaining cache coherency in a multi-level, set associative cache hierarchy
CN1555556A (en) * 2001-09-18 2004-12-15 汤姆森许可贸易公司 Method for processing information parts of recorded data
CN1570866A (en) * 2004-05-10 2005-01-26 杭州斯达康通讯有限公司 Method for comparing versions when downloading computer data to mobile phone
US20120226658A1 (en) * 2011-03-04 2012-09-06 Red Hat, Inc. Data model versioning for document databases
CN102929600A (en) * 2012-06-13 2013-02-13 许继集团有限公司 ELF (executable and linkable format)-based monitoring system version recognition method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1204268B1 (en) * 2000-10-31 2008-08-27 Hewlett-Packard Company, A Delaware Corporation Electronic record storage
CN100476792C (en) * 2004-03-01 2009-04-08 联想(北京)有限公司 Method for realizing data validity in cluster environment
US20090260004A1 (en) * 2008-04-10 2009-10-15 Palm, Inc. Computer program updates for mobile computing device
CN101610449B (en) * 2009-07-07 2011-12-28 中兴通讯股份有限公司 Method for upgrading and rolling back configuration data and system thereof
CN104407808B (en) * 2014-10-31 2017-10-10 华为技术有限公司 The method and apparatus for writing data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6047357A (en) * 1995-01-27 2000-04-04 Digital Equipment Corporation High speed method for maintaining cache coherency in a multi-level, set associative cache hierarchy
CN1555556A (en) * 2001-09-18 2004-12-15 汤姆森许可贸易公司 Method for processing information parts of recorded data
CN1570866A (en) * 2004-05-10 2005-01-26 杭州斯达康通讯有限公司 Method for comparing versions when downloading computer data to mobile phone
US20120226658A1 (en) * 2011-03-04 2012-09-06 Red Hat, Inc. Data model versioning for document databases
CN102929600A (en) * 2012-06-13 2013-02-13 许继集团有限公司 ELF (executable and linkable format)-based monitoring system version recognition method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016066081A1 (en) * 2014-10-31 2016-05-06 华为技术有限公司 Data writing method and device
CN105117489A (en) * 2015-09-21 2015-12-02 北京金山安全软件有限公司 Database management method and device and electronic equipment
CN105117489B (en) * 2015-09-21 2018-10-19 北京金山安全软件有限公司 Database management method and device and electronic equipment
CN106708651A (en) * 2016-11-16 2017-05-24 北京三快在线科技有限公司 Erasure code-based partial write-in method and device, storage medium and equipment
CN106708651B (en) * 2016-11-16 2020-09-11 北京三快在线科技有限公司 Partial writing method and device based on erasure codes, storage medium and equipment
US11119849B2 (en) 2016-11-16 2021-09-14 Beijing Sankuai Online Technology Co., Ltd Erasure code-based partial write-in
CN112035378A (en) * 2020-09-03 2020-12-04 北京百瑞互联技术有限公司 Method and system for quickly writing data into FLASH FLASH memory

Also Published As

Publication number Publication date
CN104407808B (en) 2017-10-10
WO2016066081A1 (en) 2016-05-06

Similar Documents

Publication Publication Date Title
CN108681565B (en) Block chain data parallel processing method, device, equipment and storage medium
CN105144074B (en) It is stored using the block of hybrid memory device
CN110535692B (en) Fault processing method and device, computer equipment, storage medium and storage system
CN103458086B (en) A kind of smart mobile phone and fault detection method thereof
CN105262633A (en) Application-level disaster tolerant method and application-level disaster system
US9378078B2 (en) Controlling method, information processing apparatus, storage medium, and method of detecting failure
CN104407808A (en) Method and device for writing in data
CN104765621A (en) Method and system for deploying program on cluster node
US10235048B2 (en) Data processing method and smart device
CN108255620A (en) A kind of business logic processing method, apparatus, service server and system
CN103973470A (en) Cluster management method and equipment for shared-nothing cluster
CN103559124A (en) Fast fault detection method and device
CN110083379A (en) A kind of server component upgrade method and relevant apparatus
CN102959548A (en) Data storage method, search method and device
CN103019847A (en) Method and system for migrating data of virtual machine
CN103023704A (en) Method and system for accessing virtual network service equipment
CN105144073A (en) Removable storage device identity and configuration information
CN111130856A (en) Server configuration method, system, equipment and computer readable storage medium
CN103488505B (en) Patch method, equipment and system
CN114647531A (en) Failure solving method, failure solving system, electronic device, and storage medium
CN112463228A (en) Storage pool hybrid deployment method and device
CN109740027B (en) Data exchange method, device, server and storage medium
CN106648985A (en) Disaster-tolerant repair method and device of text database
WO2016090768A1 (en) Port attribute inheritance method and device
CN109218129A (en) A kind of upgrade detection method based on log, device, memory and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant