43 Commits

Author SHA1 Message Date
tclinken
7d84e1b7af Eliminate undefined behaviour 2020-05-13 19:59:34 -07:00
Andrew Noyes
289487559d Revert "Revert "Merge pull request #2257 from zjuLcg/report-conflicting-key""
This reverts commit 804fe1b22e0a5b7f0d8fe87fe86881bfe0928546.
2020-03-24 18:11:15 -07:00
Balachandar Namasivayam
804fe1b22e Revert "Merge pull request #2257 from zjuLcg/report-conflicting-key"
This reverts commit 648dc4a933e0f606de07e2b855c62a9ed828cd3a, reversing
changes made to 487d131b38d12f8e766985c77b49e60234acac9e.
2020-03-19 21:34:28 -07:00
chaoguang
698198a09e Merge remote-tracking branch 'upstream/master' into report-conflicting-key 2020-03-09 10:50:33 -07:00
Evan Tschannen
303df197cf Merge branch 'release-6.2'
# Conflicts:
#	CMakeLists.txt
#	bindings/c/test/mako/mako.c
#	documentation/sphinx/source/release-notes.rst
#	fdbbackup/backup.actor.cpp
#	fdbclient/NativeAPI.actor.cpp
#	fdbclient/NativeAPI.actor.h
#	fdbserver/DataDistributionQueue.actor.cpp
#	fdbserver/Knobs.cpp
#	fdbserver/Knobs.h
#	fdbserver/LogRouter.actor.cpp
#	fdbserver/SkipList.cpp
#	fdbserver/fdbserver.actor.cpp
#	flow/CMakeLists.txt
#	flow/Knobs.cpp
#	flow/Knobs.h
#	flow/flow.vcxproj
#	flow/flow.vcxproj.filters
#	versions.target
2020-03-06 18:22:46 -08:00
A.J. Beamon
effb6d2d49 Add ResolverMetrics trace event 2020-03-05 10:49:21 -08:00
chaoguang
c63909c18c clang-format 2020-03-04 11:44:14 -08:00
chaoguang
3a98c691b6 Update comments 2020-03-04 11:42:19 -08:00
chaoguang
7a76e9556d Merge remote-tracking branch 'upstream/master' into report-conflicting-key 2020-03-04 11:24:39 -08:00
Evan Tschannen
96258b9809 Merge branch 'release-6.2'
# Conflicts:
#	documentation/sphinx/source/release-notes.rst
#	fdbcli/fdbcli.actor.cpp
#	fdbclient/ManagementAPI.actor.cpp
#	fdbrpc/FlowTransport.actor.cpp
#	fdbserver/ClusterController.actor.cpp
#	fdbserver/DataDistribution.actor.cpp
#	fdbserver/DataDistribution.actor.h
#	fdbserver/DataDistributionQueue.actor.cpp
#	fdbserver/KeyValueStoreMemory.actor.cpp
#	fdbserver/MasterProxyServer.actor.cpp
#	fdbserver/QuietDatabase.actor.cpp
#	fdbserver/SkipList.cpp
#	fdbserver/StorageMetrics.actor.h
#	fdbserver/TLogServer.actor.cpp
#	fdbserver/fdbserver.actor.cpp
#	fdbserver/storageserver.actor.cpp
#	fdbserver/workloads/KVStoreTest.actor.cpp
#	flow/CMakeLists.txt
#	flow/Knobs.cpp
#	flow/Knobs.h
#	flow/genericactors.actor.cpp
#	flow/serialize.h
2020-02-21 19:09:16 -08:00
Daniel Smith
011e181183 Revert to memcmp comparison in SkipList 2020-02-12 17:33:33 -05:00
Daniel Smith
3d253284ba Merge branch 'operator-test' into moar-branches 2020-02-10 14:08:25 -05:00
Daniel Smith
2e9828d442 Actually run the test 2020-02-10 13:55:04 -05:00
Daniel Smith
0cba81470e Fix compilation issue 2020-02-10 13:48:34 -05:00
Daniel Smith
7cbf840ded Merge branch 'branch-removal' into operator-test 2020-02-10 12:48:53 -05:00
Daniel Smith
3c4b93650d Add some tests for operator<() 2020-02-10 12:47:06 -05:00
Daniel Smith
2c1371eb9c Fix operator<() for reads/writes/etc 2020-02-10 12:27:32 -05:00
Daniel Smith
6ede94f2b6 Simplify operator< 2020-02-07 15:04:25 -05:00
Daniel Smith
7f490de27c Merge branch 'master' into branch-removal 2020-02-07 11:45:59 -05:00
Daniel Smith
fc695f364c Remove bool field always set to false 2020-02-05 11:08:41 -05:00
Daniel Smith
7153077f87 Only use one mini conflict set 2020-02-04 11:19:50 -05:00
Daniel Smith
3f6cacb477 Delete a bunch more code 2020-01-31 12:57:43 -05:00
Daniel Smith
3c64e77179 Delete unreachable code 2020-01-31 12:33:24 -05:00
Daniel Smith
f5be0db366 clang-format 2020-01-31 12:32:58 -05:00
chaoguang
670c3e629f Fix arena issue and change std::vector back to VectorRef 2020-01-17 14:24:13 -08:00
chaoguang
72d39a31f1 Change to send back index of read_conflict_range not keys, which speeds up but fail to give narrowed keyrange 2020-01-15 10:21:51 -08:00
chaoguang
10719200c3 A hack way to call API through getRange("\xff\xff/conflicting_keys\<start_key>", "\xff\xff/conflicting_keys\<end_key>"). 2020-01-06 11:22:11 -08:00
chaoguang
9dc79488a8 narrow the returned conflicting ranges 2019-12-06 16:21:19 -08:00
Andrew Noyes
9188344d7b Update fdbserver/SkipList.cpp
Co-Authored-By: A.J. Beamon <ajbeamon@users.noreply.github.com>
2019-12-05 15:44:43 -08:00
Andrew Noyes
46b675a719 Update fdbserver/SkipList.cpp
Co-Authored-By: A.J. Beamon <ajbeamon@users.noreply.github.com>
2019-12-05 15:44:43 -08:00
Andrew Noyes
4263a17188 Change bitMask return type to wordType 2019-12-05 15:44:43 -08:00
Andrew Noyes
604351680b Corresponding fix for lowBits 2019-12-05 15:44:43 -08:00
Andrew Noyes
485dc5d5bc Define hightBits behavior
I looked at usages of highBits and it looks like this behavior makes
sense. It's also the behavior described in the nearby comment, and the
same behavior we happened to be getting, except now it's defined.
2019-12-05 15:44:43 -08:00
Andrew Noyes
55916534fe Make orImpl private
As far as I can tell MiniConflictSet2 is meant to be a reference
implementation for MiniConflictSet, so let's give them the same API
2019-12-05 15:44:43 -08:00
Andrew Noyes
46d10dc7dc Fix "null passed as argument declared not null"
Fix several such reports from ubsan

E.g.

/Users/anoyes/workspace/foundationdb/flow/Arena.h:794:16: runtime error: null pointer passed as argument 1, which is declared to never be null
2019-12-03 14:46:53 -08:00
chaoguang
edf52e8c97 First version for reporting conflicting keys 2019-12-02 13:45:39 -08:00
A.J. Beamon
603721e125 Merge branch 'master' into thread-safe-random-number-generation
# Conflicts:
#	fdbclient/ManagementAPI.actor.cpp
#	fdbrpc/AsyncFileCached.actor.h
#	fdbrpc/genericactors.actor.cpp
#	fdbrpc/sim2.actor.cpp
#	fdbserver/DiskQueue.actor.cpp
#	fdbserver/workloads/BulkSetup.actor.h
#	flow/ActorCollection.actor.cpp
#	flow/Net2.actor.cpp
#	flow/Trace.cpp
#	flow/flow.cpp
2019-05-23 08:35:47 -07:00
Jingyu Zhou
b8e7fc1b84 Refactor: add std:: qualifier and use emplace_back 2019-05-17 09:38:50 -10:00
A.J. Beamon
5f55f3f613 Replace g_random and g_nondeterministic_random with functions deterministicRandom() and nondeterministicRandom() that return thread_local random number generators. Delete g_debug_random and trace_random. Allow only deterministicRandom() to be seeded, and require it to be seeded from each thread on which it is used. 2019-05-10 14:01:52 -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
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