1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-04-19 21:02:17 +03:00

252 Commits

Author SHA1 Message Date
Teemu Ollakka
5c3c972947 Provide access to native wsrep API handle. 2018-06-19 09:41:04 +03:00
Teemu Ollakka
0e4c7f16a9 Pass ws_handle as const reference to provider replay() 2018-06-19 09:36:15 +03:00
Teemu Ollakka
d1a1e298e9 Removed wsrep_api.h dependency from view.hpp 2018-06-18 20:39:25 +03:00
Teemu Ollakka
60fb119fa1 Cleaned up client_state interface. 2018-06-18 18:55:38 +03:00
Teemu Ollakka
cf231bdf2d Refactored server_service out of server_state. 2018-06-18 17:45:24 +03:00
Teemu Ollakka
ef5751943d Refactored most of the server_state interface into server_service
abstract interface.
2018-06-18 16:52:41 +03:00
Teemu Ollakka
4a92841cb2 Moved commit()/rollback() to transaction_termination_service interface. 2018-06-18 15:31:57 +03:00
Teemu Ollakka
03043d3f25 Removing client_state dependency from client_service. 2018-06-18 10:21:02 +03:00
Teemu Ollakka
af3119a58b Removed ostream include from public API headers. 2018-06-17 13:55:37 +03:00
Teemu Ollakka
78cb0270af Added initial interface definition for server service. 2018-06-17 12:52:24 +03:00
Teemu Ollakka
0dac901b39 Improved client state documentation. 2018-06-17 11:12:20 +03:00
Teemu Ollakka
ef4baa9f9d Renamed server_context to server_state. 2018-06-17 10:07:48 +03:00
Teemu Ollakka
790c2bec4e Renamed transcation_context to transaction 2018-06-17 10:04:00 +03:00
Teemu Ollakka
dd28b173ab Renamed client_context to client_state. 2018-06-17 10:00:13 +03:00
Teemu Ollakka
97ee96987e Fixed dbsim BF aborts 2018-06-17 09:52:56 +03:00
Teemu Ollakka
ad0617c660 Using javadoc style for doc comments 2018-06-16 15:23:14 +03:00
Teemu Ollakka
47cb8e604c Renamed client context m_applier to m_high_priority 2018-06-16 15:08:31 +03:00
Teemu Ollakka
6dcac8ce4d Finished dbsim integration with refactored client API. 2018-06-16 10:25:14 +03:00
Teemu Ollakka
b3f60b7be1 Refactoring continued. 2018-06-15 15:13:22 +03:00
Teemu Ollakka
4fbf1d0cf8 Refactoring dbms simulator. Intermediate commit. 2018-06-15 12:58:36 +03:00
Teemu Ollakka
cb3b2fbf9e Fixed unit test failures caused by refactoring. 2018-06-14 23:13:25 +03:00
Teemu Ollakka
256000f934 Refactored client_service interface out of client_context 2018-06-14 19:44:38 +03:00
Teemu Ollakka
0b6e49474f Tests and fixes for replaying. 2018-06-14 15:00:40 +03:00
Teemu Ollakka
6246d9d3b8 Allow must_abort - cert_failed transition.
If the BF abort happens during provider certify call which
returns certification failure, the cert_failed state should
take precedence.
2018-06-14 11:58:47 +03:00
Teemu Ollakka
a8ab9c6dbd SR applying implementation, unit tests. 2018-06-14 11:14:40 +03:00
Teemu Ollakka
3cd7a11cb2 Extracted streaming_context into separa teclass 2018-06-13 16:59:25 +03:00
Teemu Ollakka
37efaba3e5 Bytes and statement streaming unit. 2018-06-13 16:51:23 +03:00
Teemu Ollakka
6677e3cfd8 More unit tests for streaming replication. 2018-06-13 14:13:55 +03:00
Teemu Ollakka
f07885e204 Call before/after prepare from before_commit() when 1PC
before_prepare() call prepares removal SR fragments from stable
storage and the logic should be duplicated in before_commit()
otherwise.
2018-06-13 13:04:33 +03:00
Teemu Ollakka
461247adc1 Renamed unit test doubles 2018-06-13 11:23:48 +03:00
Teemu Ollakka
265d9b3322 Unit tests for SR with two statements, SR rollback. 2018-06-13 10:18:46 +03:00
Teemu Ollakka
9e8e6d47ba * Unit test for SR 2PC
* Removed redundant data class
* Introduced const_buffer and mutable_buffer
* Transaction context and client context interface refactoring
2018-06-12 18:04:32 +03:00
Teemu Ollakka
0186342092 Initial replicating side implementation of streaming replication 2018-06-12 15:44:20 +03:00
Teemu Ollakka
d9d41a4787 * Fixed wrong error code returned from client_context::before_command
* Fixed raw depends_on assignment from native to wsrep::seqno
* More debug logging
2018-06-12 13:17:01 +03:00
Teemu Ollakka
3456a8b953 Unit tests for identifier class. 2018-06-12 11:22:02 +03:00
Teemu Ollakka
65b4ce9123 Moved gtid class out of provider.hpp 2018-06-12 11:03:50 +03:00
Teemu Ollakka
d6f185c278 Refactored provider specific code out of server_context.cpp 2018-06-12 10:52:56 +03:00
Teemu Ollakka
97d9f93648 Refactored seqno and id classes out of provider.hpp 2018-06-12 10:20:58 +03:00
Teemu Ollakka
f506faa360 More unit tests for various error conditions on certification. 2018-06-11 18:17:00 +03:00
Teemu Ollakka
d248195690 Transaction context unit tests for failures in certify_commit() 2018-06-11 15:56:40 +03:00
Teemu Ollakka
58ea925dc3 * Unit test for BF abort after after_command_before_result()
* Revised logic for handling BF abort around after command operations
* Added lighweight thread class for runtime thread id checking
2018-06-11 11:48:07 +03:00
Teemu Ollakka
e18c9d597f * Unit test for idle client BF abort.
* Fixes to seqno conversion between provider and provider library.
* Server context applying side fixes.
2018-06-10 19:27:09 +03:00
Teemu Ollakka
2619615e02 Fixed problems with server_context unit tests.
Added WITH_ASAN and WITH_TSAN options, enabled unit tests by default.
2018-06-10 15:31:41 +03:00
Teemu Ollakka
ca615fcbd8 Provider abstraction code compiles. 2018-06-10 12:46:42 +03:00
Teemu Ollakka
e74b214c9c Provider type abstraction, partially completed. 2018-06-09 23:28:02 +03:00
Teemu Ollakka
2cecb3defe After statement result enum, is_autocommit() virtual method. 2018-06-09 20:01:46 +03:00
Teemu Ollakka
d3cb537d1e Changed project name to wsrep-lib. 2018-06-03 21:56:28 +03:00
Teemu Ollakka
188bda1339 Split client_context::after_command() into two stages, before
sending result to client and after the result was sent. Added
s_result state to client_context states.
2018-06-02 15:55:54 +03:00
Teemu Ollakka
ae93785a57 Allow read-only access to transaction context through
client context to enforce use of client context interface
for manipulating transaction context state.
2018-05-31 16:55:57 +03:00
Teemu Ollakka
2f46758064 Fixed after_statement() call to replay if the state was changed
to s_must_replay in rollback() called from after_statement().
2018-05-31 10:59:15 +03:00