1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-04-27 18:56:49 +03:00

91 Commits

Author SHA1 Message Date
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
15f483ca7f Added wsrep-API/v26 submodule which will point to correct branch
of current wsrep-API v26 version.
2018-06-05 12:45:25 +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
c73e7c8f5d Do not call before/after command/statement for replaying client. 2018-05-31 17:11:02 +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
Teemu Ollakka
646a2b328e Added TOI client mode, replced string with const char* in debug calls. 2018-05-21 16:42:40 +03:00
Teemu Ollakka
90f6eb1ecf Scripts for benchmarking providers, dbms sim fast exit option. 2018-05-09 12:23:44 +03:00
Teemu Ollakka
fbe51627a1 Generate documentation from API headers only. 2018-05-07 19:47:39 +03:00
Teemu Ollakka
0988978826 Moved public API includes under include/trrep 2018-05-07 19:40:10 +03:00
Teemu Ollakka
db5bcb50ef Renamed SST related interface methods. 2018-05-07 19:04:41 +03:00
Teemu Ollakka
abf8ef34fc SST sent/received impls for mock provider, added assertions 2018-05-06 15:43:07 +03:00
Teemu Ollakka
e7cabb713f Improved dbms sim statistics. 2018-05-02 16:53:17 +03:00
Teemu Ollakka
8e501fc03b Fixed several issues with BF aborts and error reporting.
Client context override_error() is now implemented in
client_context base class. On error virtual method will be called
to notify derived classes.

Started refactoring logging utility.
2018-05-02 13:55:38 +03:00
Teemu Ollakka
e3ca0d699b Added logger class, BF abort debugging. 2018-04-30 17:28:18 +03:00
Teemu Ollakka
3c334fbc87 More strict server context state management. 2018-04-29 18:42:36 +03:00
Teemu Ollakka
c301c0896b Refactoring. 2018-04-29 17:15:24 +03:00
Teemu Ollakka
c1f8f2c37d Client context documentation, refactoring. 2018-04-27 17:03:09 +03:00
Teemu Ollakka
28026ea4fc Started documenting client context. 2018-04-27 12:51:05 +03:00
Teemu Ollakka
f3afb6306d Initial documentation for server context. 2018-04-27 10:33:53 +03:00
Teemu Ollakka
8f45d88190 Added wsrep API as git submodule 2018-04-27 09:02:54 +03:00
Teemu Ollakka
59c87e2dfb Updated README.md 2018-04-25 10:40:31 +03:00
Teemu Ollakka
caa78cfd28 Compute transactions per second 2018-04-24 18:03:53 +03:00
Teemu Ollakka
77bef0fe9d Fixed deadlock in replaying, keep trx state in cleanup 2018-04-24 12:12:20 +03:00
Teemu Ollakka
ea512d9c36 Ported to latest wsrep API v26 2018-04-20 16:54:10 +03:00
Teemu Ollakka
5c1d390b74 DBMS simulator runs client load 2018-04-19 18:44:56 +03:00
Teemu Ollakka
3510d0739c Added SST methods, able to start several nodes in simulator 2018-04-19 15:03:38 +03:00
Teemu Ollakka
3c6eff581c DBMS simulator is now able to start and stop one server
Other:
* Added trrep::condition_variable
* Added trrep::view
2018-04-19 13:09:36 +03:00
Teemu Ollakka
557d43657c Initial version of dbms_simulator, partial wsrep provider loading 2018-04-18 18:16:55 +03:00
Teemu Ollakka
cd21425e07 Added unit tests for server_context applying codepath. 2018-04-18 15:03:12 +03:00
Teemu Ollakka
e8f4b2d183 * Added tests for voluntary transaction rollback
* Finished applier 2pc test
2018-04-18 13:33:21 +03:00
Teemu Ollakka
bed41a5ffd Made provider abstract interface instead of using pimpl.
Added forgotten mock_client_context.hpp.
2018-04-18 12:46:25 +03:00
Teemu Ollakka
c1fb9014ce Made trrep::mutex abstract class in order to allow DBMS integrations
to define their own instrumented mutex types.
2018-04-18 12:14:10 +03:00
Teemu Ollakka
7e5d2d3606 Added placeholder doxyfile 2018-04-17 16:58:28 +03:00
Teemu Ollakka
468e66dea0 Applier side transaction state changes and tests 2018-04-17 16:37:03 +03:00
Teemu Ollakka
ab795f7979 Mock server context 2018-04-17 15:01:48 +03:00
Teemu Ollakka
5c3d5ce24d Various changes
* Added preparing state to transaction_context to better distinguish
  between 1PC and 2PC processing
* Changed client_context m_local to denote local only client mode,
  added m_replicating for replicating mode
* Initial unfinished and untested fragment certification
2018-04-17 11:21:11 +03:00
Teemu Ollakka
3b428ff0b7 Imported initial implementation 2018-04-16 14:37:58 +03:00