Josh Slocum
0f2f5bc0b6
Cleanup of ThreadResult
2021-12-01 16:24:28 -06:00
Josh Slocum
7f4fcc8c2c
Added FDBResult and made readBlobGranules use it
2021-12-01 16:22:05 -06:00
A.J. Beamon
d51b93390d
Proper handling of reset and transaction destruction. Add some comments.
2021-09-17 18:10:56 -06:00
FDB Formatster
2c788c233d
apply clang-format to *.c, *.cpp, *.h, *.hpp files
2021-08-27 17:07:47 -07:00
Chaoguang Lin
bf0d0598dc
Refactor all ThrottleAPI functions using template and remove duplicate copies
2021-08-11 23:59:25 +00:00
Chaoguang Lin
618c72f7e2
Draft to use template to rewrite ThrottleApi
2021-08-11 01:07:36 +00:00
Andrew Noyes
ce4b2de6e7
Merge pull request #5290 from apple/anoyes/avoid-network-thread
...
Bring back optimization that avoids hop to network thread
2021-08-02 15:07:27 -07:00
Andrew Noyes
1d64a53b34
Apply suggestions from code review
...
Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2021-08-02 13:42:30 -07:00
Andrew Noyes
ba13b86bff
Fix comment grammar (add a period)
2021-08-02 13:41:03 -07:00
Andrew Noyes
1b1cd1e856
Fix releaseMemory deadlock and add comments
2021-08-02 13:37:09 -07:00
Chaoguang Lin
9eec9376bd
Merge pull request #5285 from sfc-gh-clin/refactor-throttle-command
...
Refactor throttle command
2021-07-28 13:43:15 -07:00
sfc-gh-tclinkenbeard
94a65865d9
Merge remote-tracking branch 'origin/master' into fix-clang-warnings
2021-07-28 12:29:27 -07:00
Andrew Noyes
fa6fc0a0f2
Bring back optimization that avoids hop to network thread
2021-07-27 13:56:38 -07:00
Chaoguang Lin
d49bd6807f
Fix a comment typo in safeThreadFutureToFuture
2021-07-27 17:51:57 +00:00
Steve Atherton
507c1f11e3
Add .log() to bare TraceEvent() invocations without any .detail()s to avoid clang-tidy warning about immediate destruction of object without use.
2021-07-26 19:55:10 -07:00
sfc-gh-tclinkenbeard
e62e6503ac
Fix most delete-non-virtual-dtor clang warnings
2021-07-21 23:32:44 -07:00
Daniel Smith
23fc685518
Update flow/ThreadHelper.actor.h
...
Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2021-06-29 13:31:36 -04:00
Daniel Smith
119a52c2e9
Update flow/ThreadHelper.actor.h
...
Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2021-06-29 13:31:23 -04:00
Daniel Smith
1c2d4119c2
Update flow/ThreadHelper.actor.h
...
Co-authored-by: A.J. Beamon <aj.beamon@snowflake.com>
2021-06-29 13:31:15 -04:00
Daniel Smith
1e0c233d40
Add some documentation for the onMainThread functions
2021-06-24 17:44:54 -04:00
Chaoguang Lin
73fdb55f4b
Add headers in new files
2021-05-06 16:43:56 -07:00
Chaoguang Lin
26569273b0
Update safeThreadFutureToFuture and remove the unnecessary wrapper
2021-04-22 19:34:49 -07:00
Chaoguang Lin
4fdfca0dc0
Update the thread-safe Future-to-ThreadFuture method, added two TSAN unit tests
2021-04-13 13:21:04 -07:00
Chaoguang Lin
60747a52a5
Add a thread-safe function that converts ThreadFuture into Future
2021-03-30 14:52:56 -07:00
FDB Formatster
df90cc89de
apply clang-format to *.c, *.cpp, *.h, *.hpp files
2021-03-10 10:18:07 -08:00
sfc-gh-tclinkenbeard
4669f837fa
Add uses of makeReference
2020-11-07 22:10:18 -08:00
sfc-gh-tclinkenbeard
ccf2ca73f3
Fix Windows CMake build
2020-10-08 23:58:58 -07:00
sfc-gh-tclinkenbeard
a3de8c333b
Use override where applicable in fdbclient
2020-10-07 16:57:38 -07:00
Markus Pilman
268ba0bddc
Merge remote-tracking branch 'origin/release-6.3' into merge-6.3
2020-10-01 14:14:06 -06:00
Evan Tschannen
2d788b309f
Merge branch 'release-6.2' into release-6.3
...
# Conflicts:
# documentation/sphinx/source/api-error-codes.rst
# flow/ThreadHelper.actor.h
# flow/error_definitions.h
2020-09-24 17:16:58 -07:00
sfc-gh-tclinkenbeard
0ac08f6a9b
Replace NULL with nullptr in flow
2020-09-20 11:31:49 -07:00
Andrew Noyes
01998a238f
Add blockUntilReadyCheckOnMainThread
2020-09-17 20:26:28 +00:00
Andrew Noyes
f6412c9f82
Only throw if the future is not ready
2020-09-16 21:34:13 +00:00
Andrew Noyes
0beab42b78
Add blocked_from_network_thread error
2020-09-15 16:49:12 +00:00
Andrew Noyes
3c3943f64f
Disallow calling blockUntilReady from main thread
...
Also fix a data race that apparently hasn't been ported to 6.2 yet
2020-09-14 16:01:45 +00:00
Andrew Noyes
81ac8211d1
Add comment
2020-09-10 08:32:52 -07:00
Andrew Noyes
0e49542d59
Fix data race described in #3749
2020-09-05 13:58:22 -07:00
Evan Tschannen
a49cb41de7
Merge branch 'release-6.3'
...
# Conflicts:
# CMakeLists.txt
# cmake/ConfigureCompiler.cmake
# fdbserver/Knobs.cpp
# fdbserver/StorageCache.actor.cpp
# fdbserver/storageserver.actor.cpp
# flow/ThreadHelper.actor.h
# flow/serialize.h
# tests/CMakeLists.txt
2020-07-29 00:31:55 -07:00
Daniel Smith
a88bbd6405
s/fake/declval/
2020-07-15 23:33:01 +00:00
sfc-gh-tclinkenbeard
99bf993815
Replace BOOST_NOEXCEPT with noexcept
2020-06-09 22:39:19 -07:00
Andrew Noyes
2e6990119b
Fix some data races
2020-04-25 00:26:54 +00:00
Alex Miller
7a500cd37f
A giant translation of TaskFooPriority -> TaskPriority::Foo
...
This is so that APIs that take priorities don't take ints, which are
common and easy to accidentally pass the wrong thing.
2019-06-25 02:47:35 -07:00
Alex Miller
c6a65389ae
Remove noexcept macro and replace with BOOST_NOEXCEPT.
...
BOOST_NOEXCEPT does what the noexcept macro was supposed to do, but in a
way that is correctly maintained over time.
2019-03-05 22:06:12 -08:00
Robert Escriva
268093a96d
Adjust all includes to be relative to the root.
...
Remove the use of relative paths. A header at foo/bar.h could be included by
files under foo/ with "bar.h", but would be included everywhere else as
"foo/bar.h". Adjust so that every include references such a header with the
latter form.
Signed-off-by: Robert Escriva <rescriva@dropbox.com>
2018-10-19 17:35:33 +00:00
Alex Miller
bca324eaa6
More actorcompiler.h fixes and additions.
2018-08-14 15:50:26 -07:00
Alex Miller
535b5701e5
Rewrite all `Void _ = wait(...)` -> `wait(...)`.
...
This takes advantage of the new actorcompiler functionality to avoid
having duplicate definitions of `Void _` when trying to feed the
un-actorompiled source through clang.
2018-08-14 15:50:26 -07:00
A.J. Beamon
99c9958db7
Some more trace event normalization
2018-06-08 13:57:00 -07:00
Alec Grieser
0bae9880f1
remove trailing whitespace from our copyright headers ; fixed formatting of python setup.py
2018-02-21 10:25:11 -08:00
FDB Dev Team
a674cb4ef4
Initial repository commit
2017-05-25 13:48:44 -07:00