Commit Graph

1298 Commits

Author SHA1 Message Date
A.J. Beamon 8125096e9b
Revert "reduce the number of calls to operator< made by lower_bound and upper…" 2020-05-05 08:17:10 -07:00
Steve Atherton 4ae356b237
Merge pull request #2882 from sears/lb_ub_perf
reduce the number of calls to operator< made by lower_bound and upper…
2020-05-04 15:46:22 -07:00
Russell Sears 17c0ad5a62 switch to the more obvious "l < r ? -1 : l == r ? 0 : 1" since code generation for that seems a bit more stable, and it is probably more commonly used than "(l > r) - (l < r)" 2020-05-04 14:47:23 -07:00
Alex Miller ce19156afd
Merge pull request #2909 from mpilman/bugfixes/cmake-includes
don't include source and binary dir
2020-05-04 14:08:25 -07:00
Evan Tschannen b68980d686
Merge pull request #2028 from negoyal/cache_storageq_results
Cache storageq results
2020-05-04 11:27:02 -07:00
Alex Miller 78d644f673
Merge branch 'master' into bugfixes/cmake-includes 2020-05-04 02:11:46 -07:00
Evan Tschannen aed2d34bcb Merge branch 'master' into feature-proxy-load-balance
# Conflicts:
#	fdbclient/NativeAPI.actor.cpp
#	fdbserver/MasterProxyServer.actor.cpp
#	flow/Knobs.cpp
2020-05-01 09:19:39 -07:00
Dave Cottlehuber 5d1513cf26 flow/platform.cpp 2020-04-30 18:11:23 +00:00
Dave Cottlehuber a380a3779f flow: look for plugins in the platform-specific place 2020-04-30 18:11:23 +00:00
Dave Cottlehuber 4bb65e6a3c flow: provide more FreeBSD-specific counters 2020-04-30 18:11:23 +00:00
Dave Cottlehuber 0fbcf258de flow: use cpuset 2020-04-30 18:11:23 +00:00
Dave Cottlehuber f6c5e207da flow: provide rdtsc if missing 2020-04-30 18:11:23 +00:00
Dave Cottlehuber 95bc24de11 flow: update headers and includes 2020-04-30 18:11:23 +00:00
Evan Tschannen 519ac70a2a
Revert "Enable -Wclass-memaccess and fix warnings" 2020-04-29 15:51:29 -07:00
Evan Tschannen 627eb93dd9
Merge pull request #2941 from etschannen/feature-tree-broadcast
Implemented a tree broadcast for the proxy and cluster controller
2020-04-29 13:38:09 -07:00
Evan Tschannen 6156042f67
Merge pull request #3017 from tclinken/enable-wclass-memaccess
Enable -Wclass-memaccess and fix warnings
2020-04-29 10:38:59 -07:00
Russell Sears 7459fad141 pr comment: restore assert 2020-04-29 10:10:30 -07:00
Russell Sears dcdda88794 replace double invocations of operator<() with three way compare(). 2020-04-29 10:10:30 -07:00
Russell Sears 0115d94e7b reduce the number of calls to operator< made by lower_bound and upper_bound #2877 2020-04-29 10:10:30 -07:00
Russell Sears 14836619ab simple benchmarks of IndexedSet, VersionedMap and std::map 2020-04-29 10:10:30 -07:00
Evan Tschannen 76fb345dd1 Merge branch 'master' into feature-tree-broadcast
# Conflicts:
#	fdbrpc/FailureMonitor.actor.cpp
2020-04-29 09:51:22 -07:00
Evan Tschannen 2b2e0b9f75
Merge pull request #2932 from vishesh/task/issue-1017-slow-machine-poisoning
FailureMonitoring: Mark unstable connections as failed [1/X]
2020-04-28 13:57:49 -07:00
Evan Tschannen b7f5f3be48 merge in master 2020-04-28 13:11:47 -07:00
Evan Tschannen cdeed25f63
Merge pull request #2996 from satherton/feature-redwood
Update Redwood
2020-04-26 11:05:24 -07:00
tclinken d654f75c46 Move instead of copy in VectorRef::reallocate 2020-04-25 12:24:06 -07:00
Andrew Noyes 2daf228e10 Avoid some unnecessary copies 2020-04-24 12:21:35 -07:00
Evan Tschannen 3fb91e8f0c
Merge pull request #3016 from etschannen/master
Merge release 6.2 into master
2020-04-23 15:44:47 -07:00
tclinken 0efce542c8 Removed outdated comments 2020-04-23 15:27:11 -07:00
Steve Atherton 93e9360d2f Merge branch 'master' of github.com:apple/foundationdb into feature-redwood 2020-04-23 15:10:08 -07:00
Andrew Noyes 99f5808118 Remove brittle ASSERT
The vtables are sorted by address, so ASLR makes this test
non-deterministic
2020-04-23 14:08:44 -07:00
Evan Tschannen c87aa33941 Merge branch 'release-6.2'
# Conflicts:
#	CMakeLists.txt
#	bindings/go/src/fdb/generated.go
#	documentation/sphinx/source/api-common.rst.inc
#	documentation/sphinx/source/api-ruby.rst
#	documentation/sphinx/source/release-notes.rst
#	fdbclient/FailureMonitorClient.actor.cpp
#	fdbclient/NativeAPI.actor.cpp
#	fdbclient/vexillographer/fdb.options
#	fdbrpc/FlowTransport.actor.cpp
#	fdbserver/OldTLogServer_6_0.actor.cpp
#	fdbserver/TLogServer.actor.cpp
#	fdbserver/fdbserver.actor.cpp
#	versions.target
2020-04-23 13:47:53 -07:00
tclinken b1f525583a Added -Wclass-memaccess compiler option and fixed warnings 2020-04-22 21:53:42 -07:00
A.J. Beamon 90d29dd432
Merge pull request #2993 from alexmiller-apple/tls-permission-errors
Match 6.2.15's behavior in how invalid/unreadable/non-existent certs are handled.
2020-04-22 16:54:18 -07:00
A.J. Beamon ed54913973
Merge pull request #2976 from atn34/atn34/thread-local
Prevent main thread from destroying flatbuffers globals
2020-04-22 14:36:51 -07:00
A.J. Beamon 58fbd0e3a1
Merge pull request #2980 from alexmiller-apple/tls-background-eio-thread
Stop background eio threads on Net2::stop()
2020-04-22 08:17:59 -07:00
Alex Miller c6df20a179
Use nullptr instead of NULL 2020-04-21 20:39:45 -07:00
negoyal 2fa7d485f5 Merge branch 'master' into cache_storageq_results 2020-04-21 17:28:17 -07:00
Vishesh Yadav 92c86a7799 Merge remote-tracking branch 'apple/master' into task/issue-1017-slow-machine-poisoning 2020-04-21 03:36:19 -07:00
Alex Miller a51746b307 Match 6.2.15's behavior in how invalid/unreadable/non-existent certs are handled.
Which is to proceed past Net2 creation, and allow certificate refresh to
try and eventually load valid certs.  Additionally, fix certificate
refeshing dieing if the certificate is not readable when first called.

In testing, I also found and fixed an issue where if a cert went from
unreadable to readable, we wouldn't reload the TLS context, due to not
considering it as a file change.
2020-04-20 21:38:04 -07:00
Alex Miller 20fe068863 Merge branch 'tls-background-eio-thread' into tls-permission-errors 2020-04-20 20:51:05 -07:00
Xin Dong 49c6bb90ef
Merge pull request #2982 from alexmiller-apple/tls-log-settings
Log Net2TLSConfig with paths and settings when using TLS.
2020-04-20 15:46:26 -07:00
Alex Miller 75a4f3b7c9 Remove comment about ignoring runOnMainThread errors.
If we got an exception, it wouldn't be of type `Error` anyway, so
it seems like things would crash regardless.
2020-04-20 13:19:42 -07:00
Alex Miller da8e47ea25 Merge remote-tracking branch 'upstream/release-6.2' into tls-background-eio-thread 2020-04-20 13:15:05 -07:00
Alex Miller 5c399bf725 Move the callbacks into ::run() right before it exits.
stopped=true doesn't cause the run loop to immediately exit.
2020-04-20 13:14:19 -07:00
Jingyu Zhou 7507f2da81
Merge pull request #2984 from satherton/future-move-t-constructor
Added Future<T>(T &&value) constructor to avoid a copy...
2020-04-20 11:47:32 -07:00
Steve Atherton ba1b0a1d96 Use std::move() instead of forward. 2020-04-20 11:01:01 -07:00
A.J. Beamon c28a843251
Merge pull request #2977 from alexmiller-apple/tls-no-atexit
Fix clients crashing in TLS code on exit.
2020-04-20 08:40:16 -07:00
Steve Atherton 022b77e288 Actor compiler will std::move() return expressions that exactly match a state variable. 2020-04-20 04:19:33 -07:00
Alex Miller 2ce539ef6d Respect flow<->fdbrpc module boundaries.
Which fixes a compilation error due to a circular dependency between
flow.a and fdbrpc.a.  However, this is now done at the cost of newNet2
users have to remember to add Net2FileSystem::stop() as a callback.
2020-04-20 02:53:07 -07:00
Steve Atherton 7b23c6f640 Future constructor to avoid a copy when Future<T> is initialized from an rvalue reference to T. 2020-04-20 01:52:28 -07:00