Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification one or more embodiment.Phase
Instead, they are only some aspects phases with the one or more embodiments of as detailed in the attached claim, this specification
The example of consistent device and method.
It should be noted that:The sequence that might not show and describe according to this specification in other embodiments executes
The step of correlation method.In some other embodiments, step included by method can than described in this specification more
It is more or less.In addition, single step described in this specification, may be broken down into other embodiments multiple steps into
Row description;And multiple steps described in this specification, it may also be merged into single step progress in other embodiments
Description.
Fig. 1 is a kind of configuration diagram of the correction system for affairs causal ordering that an exemplary embodiment provides.Such as Fig. 1 institute
Show, which may include client 10 and distributed data base 20.Wherein, distributed data base 20 may include database clothes
Be engaged in device 20A, 20B etc..Client is by maintenance correction time stamp (transaction time not less than historical transactions stabs), and by timing
Between stamp be sent to need to request execute affairs database server so that the database server when executing affairs produce greatly
In the transaction time stamp of correction time stamp, to meet the causal ordering that client defines, (transaction time stamp should be greater than history
The transaction time of affairs stabs).The above process will be hereafter described in detail.
Database server 20A, 20B etc. can be the physical server comprising a unique host, or may be master
The virtual server of machine cluster carrying.In the process of running, database server 20A, 20B etc. can run the clothes of a certain application
The program of business device side, to realize the related service function of the application, such as when the database server 20A, 20B etc. run affairs
When the program of the correct operation of causal ordering, the server-side of the calibration function for realizing affairs causal ordering can be configured as.And
In the technical solution of this specification one or more embodiment, can by database server 20A, 20B etc. by with client
10 are cooperated, to realize to the corrected scheme of affairs causal ordering.
The electronic equipment of such as following types can be used as client 10 in user:Tablet device, laptop, the palm
Upper computer (PDAs, Personal Digital Assistants) etc., this specification one or more embodiment not to this into
Row limitation.
It, can be with and for the network (not shown) that client 10 and database server 20A, 20B etc. interact
Including a plurality of types of wired or wireless networks.In one embodiment, which may include Public Switched Telephone Network
(Public Switched Telephone Network, PSTN) and internet, this specification one or more embodiment is not
This is limited.
Separately below for the different role in client and database server, to the affairs causal ordering of this specification
Correcting scheme is illustrated.
Fig. 2 is a kind of flow chart of the bearing calibration for client-side affairs causal ordering that an exemplary embodiment provides.Such as
Shown in Fig. 2, this method be may comprise steps of:
Step 202, into distributed data base, any database server initiates to execute request for pending affairs.
Step 204, determine that correction time stabs.
In the present embodiment, the time of the clock log of each database server is possible and different in distributed data base
It causes, is stabbed if each database server generates transaction time according to the clock of itself, may cause the transaction time stamp of affairs not
Meet the causal ordering that client defines.It requests to execute affairs T_1 to database server A for example, client is first, at this time database
The clock of server A is 100;It is 100 that then database server A, which is returned and executed the transaction time stamp of affairs T_1,.Client is true
After determining the completion of database server A to the execution of affairs T_1, then request to execute affairs T_2 (causal ordering to database server B
After betiding affairs T_1 for affairs T_2), if the clock of database server B is 90 (less than 100), database clothes at this time
It is 90 that business device B, which is returned and executed the transaction time stamp of affairs T_2, causes the transaction time stamp of affairs T_1 instead greater than affairs T_2's
The sequence of transaction time stamp, i.e. execution affairs T_1 and affairs T_2 does not meet the causal ordering that client defines.So, if it is subsequent
Affairs of the transaction time stamp before 95 need to be read, affairs T_2 can only be just read out, affairs T_1 can not be read out;And it is real
Before affairs T_1 betides affairs T_2 on border, belong to affairs of the transaction time stamp before 95.
Therefore, client can realize the correcting scheme of affairs causal ordering in this specification by maintenance correction time stamp.
Wherein, the correction time stamp stabs (hereinafter referred to as historical transactions timestamp) not less than the transaction time of historical transactions, described
Historical transactions are the historical transactions that the client is executed to the request of each database server.It in one embodiment, can will be described
Correction time stamp be equal to described client the last time to database server (may be any database service
Device, it is also possible to other database servers) request the transaction time of the affairs executed to stab (hereinafter referred to as nearest transaction time
Stamp);In another embodiment, the correction time can be stabbed and is set greater than nearest transaction time stamp.
Step 206, correction time stamp is sent to any database server, so that any database service
Device is greater than correction time stamp in response to the transaction time stamp for executing request.
In the present embodiment, the characteristics of based on correction time stamp not less than historical transactions timestamp, any number
According to library server after receiving the correction time stamp, it can be stabbed according to the correction time and be asked to generate in response to the execution
The transaction time stamp asked meets visitor so that the transaction time stamp generated is later than historical transactions timestamp in time sequencing
The causal ordering that family end defines.In one embodiment, any database server can be first by the clock of itself and the correction
Timestamp is compared, and the foundation generated in response to the transaction time stamp for executing request is determined further according to comparison result.Than
Such as, it if the clock of any database server itself is stabbed no more than the correction time, is stabbed according to the correction time
It generates and is stabbed in response to the transaction time for executing request, stabbed so that transaction time stamp is greater than the correction time, it is no
Then, it is generated according to the clock of itself and is stabbed in response to the transaction time for executing request.Wherein, when the clock of itself is not more than institute
State correction time stamp when, can further by the clock of itself be revised as be greater than the correction time stab so that itself when
Clock is not slower than the clock of other database servers.In another embodiment, any database server can direct basis
The correction time stamp generation is stabbed in response to the transaction time for executing request, so that transaction time stamp is greater than described
Correction time stamp.The clock of itself and the correction time are stabbed into the operation being compared by omitting, generation affairs can be improved
The efficiency of timestamp.
Correspondingly, Fig. 3 is a kind of correction side for database server side affairs causal ordering that an exemplary embodiment provides
The flow chart of method.As shown in figure 3, this method may comprise steps of:
Step 302, correction time stamp is received.
In the present embodiment, the correction time stamp is stabbed not less than the transaction time of historical transactions, and the historical transactions are
The historical transactions that client is executed to the request of each database server.Wherein, the detailed description about correction time stamp, can
With reference to the related content in above-mentioned Fig. 3 embodiment, details are not described herein.
Step 304, when the execution for pending affairs for receiving the client initiation is requested, according to the school
Positive timestamp is generated to be stabbed in response to the transaction time for executing request, so that transaction time stamp is greater than the timing
Between stab.
In the present embodiment, it if the clock of itself is stabbed no more than the correction time, is stabbed and is given birth to according to the correction time
It stabs in response to the transaction time for executing request, is stabbed so that transaction time stamp is greater than the correction time;Otherwise,
It is generated according to the clock of itself and is stabbed in response to the transaction time for executing request.Further, when the clock of itself is not more than
When the correction time stabs, the clock of itself can be revised as being greater than correction time stamp, so that the clock of itself is not
It is slower than the clock of other database servers.Similar, it is stabbed for database server according to correction time and generates transaction time
The related content that can refer in above-mentioned Fig. 2 embodiment is described in detail in the operation of stamp, and details are not described herein.
In order to make it easy to understand, data instance is modified below with client request, to this specification one or more embodiment
Technical solution be described in detail.Fig. 4 is a kind of friendship of the bearing calibration for affairs causal ordering that an exemplary embodiment provides
Mutually figure.As shown in figure 4, first data are modified in backward database server A, database server B request to client;Wherein, in number
After the modification data success of library server A, client requests modification data to database server B again.The bearing calibration can be with
Include the following steps:
Step 401, client is sent to database server A executes request a, to modify the number in database server A
According to a.
In the present embodiment, client can be communicated by connection pool with each database server.
Step 402, database server A modifies data a.
Step 403, database server A generates transaction time and stabs a.
Step 404, database server A returns to modification result a to client and transaction time stabs a.
Step 405, client determines that correction time stabs.
In the present embodiment, it can will stab correction time and be equal to nearest transaction time stamp.And in the current generation, recently
Transaction time stamp is that transaction time stabs a;Therefore, it can will stab correction time and be equal to transaction time stamp a.For example it is assumed that thing
Business timestamp a is 92, is set as 92 then can will stab correction time.Certainly, it can also will stab correction time and be set greater than recently
Transaction time stamp;For example, being undertaken in the example above, it can will stab correction time and be set as 93,94,95 etc..
Step 406, client is sent to database server B executes request b and correction time stamp.
In the present embodiment, client is after determining database server A complete paired data a modifies, to
Database server B, which is sent, executes request b to modify the data b in database server B.So, causal ordering at this time is " number
Before betiding " database server B modify data b " according to library server A modification data a ".
Step 407, database server B compares the clock of correction time stamp and itself.
Step 408, when the clock of itself is stabbed no more than correction time, database server B modifies the clock of itself
To be stabbed greater than correction time.
Step 409, database server B modifies data b.
Step 410, database server B generates transaction time and stabs b.
In the present embodiment, when the clock of itself be greater than correction time stab when, database server B be not necessarily to by itself when
Clock is revised as being greater than correction time stamp, and directly according to transaction time stamp b is generated at the time of the clock log of itself, (affairs " are modified
At the time of data b ").When the clock of database server B itself is no more than correction time stamp (correction time stamp etc. at this time
A is stabbed in transaction time, and at the time of transaction time stamp a is affairs " modification data a ") when, if continuing using itself clock log
Time generate affairs timestamp b, then will lead to transaction time stamp b no more than transaction time and stab a, i.e. database server A
Before modification data a " not betides " database server B modifies data b ", to not meet causal ordering.
Therefore, first the clock of itself can be revised as being greater than correction time stamp, succeeded further according to modified clock next life
Timestamp b be engaged in meet above-mentioned causal ordering.For example, being undertaken in the citing that above-mentioned correction time stamp is equal to transaction time stamp a, it is assumed that
The clock of itself is 90, since the clock of itself is 90 less than correction time stamp 92, the clock of itself can be revised as 93, then adopt
B is stabbed with transaction time is generated at the time of modified clock log, i.e. transaction time stamp b is 93.As it can be seen that transaction time stamp b is big
A is stabbed in transaction time, meets " database server A modification data a is betided before database server B modification data b "
Causal ordering.Certainly, the amplitude of modification can flexibly be set according to the actual situation, and this specification is limited not to this.For example, also
The clock of itself can be revised as 94,95,100 etc..It is modified by the clock to itself, may make the clock of itself not slow
In the clock of database server A.So the subsequent requirement for occurring above-mentioned causal ordering again when, can be to avoid database server B
Frequently modify the clock of itself.
The operation that the clock of itself is revised as being greater than correction time stamp (is omitted it should be noted that also can be omitted
Step 408) is directly stabbed in the clock for comparing itself no more than correction time, and after execution affairs " modification data b ", raw
B is stabbed at the transaction time for being greater than correction time stamp, to can avoid modifying to the clock of itself.
In the present embodiment, database server B can also omit the comparison operation of step 407 (so step 408 is also therewith
Without executing), directly after executing affairs " modification data b ", the transaction time generated greater than correction time stamp stabs b, so as to
It avoids modifying to the clock of itself.Meanwhile the clock of itself and correction time are stabbed into the operation being compared by omitting,
The efficiency for generating transaction time stamp can be improved.
Step 411, database server B returns to modification result b to client and transaction time stabs b.
Step 412, client stabs b update correction time stamp according to transaction time.
In the present embodiment, in the current generation, nearest transaction time stamp is changed to transaction time stamp b by transaction time stamp a;
Therefore, it is necessary to will stab correction time to be updated to transaction time stamp b by transaction time stamp a.For example, being undertaken in above-mentioned transaction time stamp
The citing that b is 93, can will stab and be updated to 93 correction time.
In the technical solution of the application, it can safeguard that correction time stabs, by middleware equipment also to realize affairs cause and effect
The correcting scheme of sequence.Fig. 5 is referred to, Fig. 5 is the correction system for another affairs causal ordering that an exemplary embodiment provides
Configuration diagram.As shown in figure 5, the system may include client 30A-30C, middleware equipment 40 and distributed data base 50
(including database server 50A, 50B etc.).Wherein, middleware equipment 40 is connected to client 30A-30C and distributed data
Between library 50, operation has middleware, takes so as to be used for transmission each database in client 30A-30C and distributed data base 50
The data communicated between business device (database server 50A, 50B etc.).In addition, client 30A-30C and distributed data
Library 50 in above-mentioned Fig. 1 client 10 and distributed data base 20 it is similar, detailed description can refer to framework shown in above-mentioned Fig. 1
Related content, details are not described herein.
Fig. 6 is referred to, Fig. 6 is a kind of correction side for middleware equipment side affairs causal ordering that an exemplary embodiment provides
Method.As shown in fig. 6, middleware can be run in the middleware equipment, it is each in client and distributed data base to be used for transmission
The data communicated between database server;This method may comprise steps of:
Step 602, the pending thing for any database server in distributed data base that detection client is initiated
Business executes request.
Step 604, determine that correction time stabs.
In the present embodiment, the correction time stamp is stabbed not less than the transaction time of historical transactions, and the historical transactions are
The historical transactions that the client is executed to the request of each database server.Wherein, retouching in detail about correction time stamp
It states, can refer to the related content in above-mentioned Fig. 2 embodiment, details are not described herein.
In the present embodiment, based on correction time stamp is safeguarded by the middleware equipment independently of client, when in the presence of more
When a client, multiple client can pass through each database service in same middleware equipment and distributed data base
Device is communicated.Therefore, middleware equipment can safeguard the correction time stamp corresponding to each client;Wherein, client can be established
The mapping relations of end mark and stamp of corresponding correction time.So, middleware equipment can first determine institute when determining correction time stamp
The client identification for executing sender's client of request is stated, then (according to the mapping relations) determine and correspond to the client
The correction time of mark stabs.
Step 606, correction time stamp is sent to any database server, so that any database service
Device is greater than correction time stamp in response to the transaction time stamp for executing request.
In order to make it easy to understand, data instance is modified below with client request, to this specification one or more embodiment
Technical solution be described in detail.As shown in fig. 7, Fig. 7 is another affairs causal ordering that an exemplary embodiment provides
The interaction figure of bearing calibration.Operation has middleware in middleware equipment, is used for transmission in each client and distributed data base
The data communicated between each database server.First backward database server C, database server D are requested customer end A
Modify data;Wherein, after database server C modification data success, customer end A requests to modify to database server D again
Data.The bearing calibration may comprise steps of:
Step 701, customer end A is sent to middleware equipment executes request c, to modify the data in database server C
c;
In the present embodiment, customer end A can be communicated by connection pool with middleware equipment.
Step 702, middleware equipment is forwarded to database server C executes request c.
Step 703, database server C modifies data c.
Step 704, database server C generates transaction time and stabs c.
Step 705, database server C returns to modification result c to middleware equipment and transaction time stabs c.
Step 706, middleware equipment determines that correction time stabs a.
In the present embodiment, the correction time stamp a for corresponding to customer end A can be equal to the nearest thing of customer end A
Business timestamp.And in the current generation, the nearest transaction time stamp of customer end A is that transaction time stabs c;It therefore, can be by correction time
Stamp a is equal to transaction time stamp c.For example it is assumed that transaction time stamp c is 100, it is set as then a can will be stabbed correction time
100.Certainly, it can also will stab a correction time and be set greater than nearest transaction time stamp.For example, it is undertaken in the example above, it can high-ranking officers
Positive timestamp a is set as 101,104,109 etc..Since maintenance has the correction time corresponding to each client in middleware equipment
Stamp, middleware equipment can establish the mapping relations of client identification and stamp of corresponding correction time, to distinguish each correction time
Stamp.It for example, can be using the IP address of client as client identification, then mapping relations as shown in Table 1 can be established:
Correction time stamp |
IP address |
Correction time stabs a |
1.1.1.1 |
Correction time stabs b |
1.1.1.2 |
Correction time stabs c |
1.1.1.3 |
…… |
…… |
Table 1
It is of course also possible to use other information relevant to client are as client identification, this specification is not to this
It is limited.
Step 707, middleware equipment forwards modification result c to customer end A.
In the present embodiment, middleware equipment only can forward modification result c to customer end A, without forwarding timing
Between stab a, so that the transparent processing to customer end A can be realized so that the maintenance process that customer end A perception is stabbed less than correction time,
It is executed according to the process of normal request modification data.
Step 708, customer end A is sent to middleware equipment executes request d, to modify the data in database server D
d。
In the present embodiment, customer end A is after determining database server C complete paired data c modifies, to
Database server D, which is sent, executes request d to modify data d.So, causal ordering at this time is that " database server C modifies number
Before betiding " database server D modifies data d " according to c ".
Step 709, middleware equipment is forwarded to database server D executes request d and correction time stamp a.
In the present embodiment, based on the foundation to mapping relations in above-mentioned table 1, middleware equipment is being determined corresponding to client
When the correction time of A being held to stab a, the client identification (i.e. the IP address of customer end A) of customer end A can be first determined, further according to above-mentioned
Mapping relations in table 1 determine that the correction time for corresponding to customer end A stabs a.
Step 710, database server D compares the clock of correction time stamp a and itself.
Step 711, when the clock of itself is no more than correction time stamp a, database server D modifies the clock of itself
To stab a greater than correction time.
Step 712, database server D modifies data d.
Step 713, database server D generates transaction time and stabs d.
In the present embodiment, when the clock of itself be greater than correction time stamp a when, database server D be not necessarily to by itself
Clock is revised as being greater than correction time stamp a, and directly according to transaction time stamp d is generated at the time of the clock log of itself, (affairs " are repaired
At the time of changing data d ").When the clock of database server D itself is no more than correction time stamp (correction time stamp a at this time
C is stabbed equal to transaction time, and at the time of transaction time stamp c is affairs " modification data c ") when, if continuing to remember using itself clock
The time of record generates affairs timestamp d, then will lead to transaction time stamp d no more than transaction time and stab c, i.e. database server
Before C modification data c " not betides " database server D modifies data d ", to not meet causal ordering.
Therefore, first the clock of itself can be revised as being greater than correction time stamp, succeeded further according to modified clock next life
Timestamp d be engaged in meet above-mentioned causal ordering.For example, it is undertaken in the citing that above-mentioned correction time stamp a is equal to transaction time stamp c, it is false
The clock for determining itself is 98, since the clock of itself is 98 values 100 for being less than correction time stamp a, can be repaired the clock of itself
101 are changed to, then stabs d using transaction time is generated at the time of modified clock log, i.e., transaction time stamp d is 101.As it can be seen that
Transaction time stabs d and is greater than transaction time stamp c, and " database server C modification data c betides database server D modification to satisfaction
Before data d " causal ordering.Certainly, the amplitude of modification can flexibly be set according to the actual situation, and this specification is not to this progress
Limitation.For example, also the clock of itself can be revised as 102,105,111 etc..It is modified, be may make by the clock to itself
The clock of itself is not slower than the clock of database server C.So the subsequent requirement for occurring above-mentioned causal ordering again when, can be to avoid
Database server D frequently modifies the clock of itself.
The operation that the clock of itself is revised as being greater than correction time stamp a (is omitted it should be noted that also can be omitted
Step 711), it is raw directly after the clock for comparing itself stabs a, and execution affairs " modification data d " no more than correction time
D is stabbed at the transaction time for being greater than correction time stamp a, to can avoid modifying to the clock of itself.
In the present embodiment, database server D can also omit the comparison operation of step 710 (so step 711 is also therewith
Without executing), directly after executing affairs " modification data d ", generates the transaction time greater than correction time stamp a and stab d, so as to
It avoids modifying to the clock of itself.Meanwhile the clock of itself and correction time are stabbed into the operation being compared by omitting,
The efficiency for generating transaction time stamp can be improved.
Step 714, database server D returns to modification result d to middleware equipment and transaction time stabs d.
Step 715, middleware equipment stabs d update correction time according to transaction time and stabs a.
In the present embodiment, in the current generation, the nearest transaction time stamp of customer end A is changed to thing by transaction time stamp c
Be engaged in timestamp d;Therefore, it is necessary to will stab a correction time to be updated to transaction time stamp d by transaction time stamp c.For example, being undertaken in
The citing that transaction time stamp d is 101 is stated, a can will be stabbed correction time and be updated to 101.
Step 716, middleware equipment forwards modification result d to customer end A.
By above technical scheme as it can be seen that by maintenance correction time stamp (transaction time not less than historical transactions stabs), and
Correction time stamp is sent to the database server that need to request to execute affairs, so that the database server is when executing affairs
It can be stabbed according to correction time and generate the transaction time stamp for being greater than correction time stamp, that is, meet the causal ordering that client defines.
Fig. 8 is the schematic configuration diagram for a kind of electronic equipment that an exemplary embodiment provides.Referring to FIG. 8, in hardware layer
Face, the equipment include processor 802, internal bus 804, network interface 806, memory 808 and nonvolatile memory 810,
Certainly it is also possible that hardware required for other business.Processor 802 reads corresponding meter from nonvolatile memory 810
Then calculation machine program is run into memory 808, the means for correcting of affairs causal ordering is formed on logic level.Certainly, in addition to soft
Except part implementation, this specification one or more embodiment is not precluded other implementations, for example, logical device or
Mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each logic unit,
It can be hardware or logical device.
Referring to FIG. 9, the means for correcting of affairs causal ordering is applied to middleware equipment, described in Software Implementation
Middleware equipment is used for transmission the data communicated between client and database server each in distributed data base;The thing
Business causal ordering means for correcting may include:
Detection unit 91, detection client initiate in distributed data base any database server it is pending
Affairs execute request;
Determination unit 92 determines that correction time stabs, and the correction time stamp is stabbed not less than the transaction time of historical transactions, institute
Stating historical transactions is the historical transactions that the client is executed to the request of each database server;
Transmission unit 93 sends correction time stamp to any database server, so that any database
Server is greater than correction time stamp in response to the transaction time stamp for executing request.
Optionally, the middleware equipment is used for transmission each database server in multiple client and distributed data base
Between the data that are communicated, the middleware equipment maintenance has the correction time stamp corresponding to each client;The determination
Unit 92 is specifically used for:
Determine the client identification of the sender's client for executing request;
Determine that the correction time for corresponding to the client identification stabs.
Optionally, the correction time stamp is the affairs executed to database server request described client the last time
Transaction time stamp.
Figure 10 is the schematic configuration diagram for another electronic equipment that an exemplary embodiment provides.Referring to FIG. 10, hard
Part level, the equipment include processor 1002, internal bus 1004, network interface 1006, memory 1008 and non-volatile deposit
Reservoir 1010 is also possible that hardware required for other business certainly.Processor 1002 is from nonvolatile memory 1010
It reads corresponding computer program then to run into memory 1008, forms the correction dress of affairs causal ordering on logic level
It sets.Certainly, other than software realization mode, other implementations are not precluded in this specification one or more embodiment, than
The mode of such as logical device or software and hardware combining, that is to say, that the executing subject of following process flow is not limited to respectively
A logic unit is also possible to hardware or logical device.
Figure 11 is please referred to, in Software Implementation, the means for correcting of the affairs causal ordering is applied to client;It can wrap
It includes:
Request unit 1101, into distributed data base, any database server initiates the execution for being directed to pending affairs
Request;
Determination unit 1102 determines that correction time stabs, and the correction time stamp is stabbed not less than the transaction time of historical transactions,
The historical transactions are the historical transactions that the client is executed to the request of each database server;
Transmission unit 1103 sends correction time stamp to any database server, so that any data
Library server is greater than correction time stamp in response to the transaction time stamp for executing request.
Figure 12 is the schematic configuration diagram for another electronic equipment that an exemplary embodiment provides.Figure 12 is please referred to, hard
Part level, the equipment include processor 1202, internal bus 1204, network interface 1206, memory 1208 and non-volatile deposit
Reservoir 1212 is also possible that hardware required for other business certainly.Processor 1202 is from nonvolatile memory 1212
It reads corresponding computer program then to run into memory 1208, forms the correction dress of affairs causal ordering on logic level
It sets.Certainly, other than software realization mode, other implementations are not precluded in this specification one or more embodiment, than
The mode of such as logical device or software and hardware combining, that is to say, that the executing subject of following process flow is not limited to respectively
A logic unit is also possible to hardware or logical device.
Figure 13 is please referred to, in Software Implementation, the means for correcting of the affairs causal ordering is applied to database server,
May include:
Receiving unit 1301 receives correction time stamp, and the correction time stamp is stabbed not less than the transaction time of historical transactions,
The historical transactions are the historical transactions that client is executed to the request of each database server;
Generation unit 1302, when the execution for pending affairs for receiving the client initiation is requested, according to
The correction time stamp generation is stabbed in response to the transaction time for executing request, so that transaction time stamp is greater than described
Correction time stamp.
Optionally, the generation unit 1302 is specifically used for:
If the clock of itself is stabbed no more than the correction time, is generated according to correction time stamp and held in response to described
The transaction time stamp of row request, is stabbed so that transaction time stamp is greater than the correction time;
Otherwise, it is generated according to the clock of itself and is stabbed in response to the transaction time for executing request.
Optionally, further include:
Unit 1303 is modified, when the clock of itself is stabbed no more than the correction time, the clock of itself is revised as greatly
It is stabbed in the correction time.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
In a typical configuration, computer includes one or more processors (CPU), input/output interface, network
Interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, based on graphene
Storage medium or other magnetic storage devices or any other non-transmission medium, can be used for storing can be accessed by a computing device
Information.As defined in this article, computer-readable medium does not include temporary computer readable media (transitory media),
Such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.
The term that this specification one or more embodiment uses be only merely for for the purpose of describing particular embodiments, and
It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and the appended claims
Used in the "an" of singular, " described " and "the" be also intended to including most forms, unless context understands earth's surface
Show other meanings.It is also understood that term "and/or" used herein refers to and includes one or more associated list
Any or all of project may combine.
It will be appreciated that though this specification one or more embodiment may using term first, second, third, etc. come
Various information are described, but these information should not necessarily be limited by these terms.These terms are only used to same type of information area each other
It separates.For example, the first information can also be referred to as in the case where not departing from this specification one or more scope of embodiments
Two information, similarly, the second information can also be referred to as the first information.Depending on context, word as used in this is " such as
Fruit " can be construed to " ... when " or " when ... " or " in response to determination ".
The foregoing is merely the preferred embodiments of this specification one or more embodiment, not to limit this theory
Bright book one or more embodiment, all within the spirit and principle of this specification one or more embodiment, that is done is any
Modification, equivalent replacement, improvement etc. should be included within the scope of the protection of this specification one or more embodiment.