Commit Graph

11 Commits

Author SHA1 Message Date
Lukas Joswiak 3b3ef49d40 Remove unnecessary transaction initialization
`ReadYourWritesTransaction` has memory allocated before being passed to
the main thread. This allows both threads to continue to access the
transaction object. Currently, the transaction gets allocated and
initialized on the foreign thread, and then re-initialized on the main
thread. This causes a bunch of extra, unnecessary work for each
`ReadYourWritesTransaction` where the temporary object gets destructed.

The fix is to only allocate memory for the `ReadYourWritesTransaction`
on the foreign thread, and then initialize it once on the main thread.
2022-06-10 16:53:19 -07:00
sfc-gh-tclinkenbeard a71099471b Update copyright header dates 2022-03-21 13:36:23 -07:00
A.J. Beamon c635dcd3ad Add tenant support in the FDB native client 2022-03-15 09:21:27 -07:00
sfc-gh-tclinkenbeard c9ec3d2d93 Added ConfigIncrement workload 2021-08-09 10:04:35 -07:00
sfc-gh-tclinkenbeard fe5e7f8c2a Remove ISingleThreadTransaction::create function 2021-06-29 10:29:41 -07:00
Andrew Noyes d69fda1d2e Remove preinitializeOnForeignThread 2021-06-23 14:33:41 -07:00
Andrew Noyes af0f286e17 Fix a few instances of UB
Member access to address which does not point to correct type
2021-06-22 21:44:59 -07:00
sfc-gh-tclinkenbeard 905f0065e5 Store DatabaseContext reference in configuration transaction objects 2021-06-02 22:14:58 -07:00
sfc-gh-tclinkenbeard da2f773759 Update ISingleThreadTransaction::create to support PAXOS_CONFIG transactions 2021-05-17 13:15:40 -07:00
sfc-gh-tclinkenbeard f7f4595d90 Fix SEGFAULT in call to ReadYourWritesTransaction::preinitializeOnForeignThread 2021-05-10 15:33:44 -07:00
sfc-gh-tclinkenbeard 331dd2e377 Replace config_transaction option with use_config_database 2021-05-10 13:18:31 -07:00