Commit Graph

132 Commits

Author SHA1 Message Date
Alex Miller 927cff3317 Report errors on TLS misconfigurations ... or at least try to. 2020-02-20 16:57:29 -08:00
A.J. Beamon 0bf7fdb450 Merge branch 'release-6.1' into merge-release-6.1-into-release-6.2
# Conflicts:
#	bindings/c/fdb_c.cpp
#	documentation/sphinx/source/release-notes.rst
2019-09-30 13:37:46 -07:00
A.J. Beamon 88c63637d3 Remove DLLEXPORT from various functions. Don't call public functions from the C bindings, as that has a bad interaction with the multi-version API. 2019-09-27 15:33:44 -07:00
A.J. Beamon e2f4d19c34 Don't export the fdb_future_get_version_v619 symbol. Mark fdb_future_get_version as a removed function. 2019-09-27 15:31:09 -07:00
Alvin Moore b10f3ad7a1 Removed unnecessary and ununed libraries from compilation command. Inclusion of this will produce an error with certain compilers such as Clang
Added the `-c` option to specify the source files being compiled. Exclusion of this will produce and error with certain compilers such as gcc 9.1
2019-09-12 11:08:01 -07:00
A.J. Beamon bc5c65e5ab
Merge pull request #1756 from jzhou77/db-option
Add transaction getApproximateSize() API
2019-07-19 08:33:24 -07:00
Jingyu Zhou 7fd772803e Better handle API version in mako.c
Only use fdb_future_get_int64 for API version >= 620.
2019-07-18 13:47:43 -07:00
A.J. Beamon 93be69b6a3 Increase the API version to 620. 2019-07-18 10:56:05 -07:00
Jingyu Zhou 14cb21285f Remove futureGetVersion in C binding and FutureVersion in Python binding 2019-07-16 10:46:07 -07:00
Jingyu Zhou 94563464cb
Update bindings/c/foundationdb/fdb_c.h
Co-Authored-By: A.J. Beamon <ajbeamon@users.noreply.github.com>
2019-07-16 10:15:47 -07:00
Jingyu Zhou 2dcc3cfd0a Deprecate fdb_future_get_version for version 620
Use fdb_future_get_int64 in all bindings.
2019-07-11 21:17:31 -07:00
Jingyu Zhou b2a89c8b77 Address review comments for PR #1756
Use fdb_future_get_int64 for language bindings and get rid of using Version
with getApproximateSize API.
2019-07-11 16:41:29 -07:00
Jingyu Zhou a82662a3bc
Update bindings/c/foundationdb/fdb_c.h
Co-Authored-By: A.J. Beamon <ajbeamon@users.noreply.github.com>
2019-07-11 14:00:47 -07:00
Jingyu Zhou 55d1d62ee3 Fix python tests and use 620 version for C test 2019-07-10 15:19:49 -07:00
Jingyu Zhou c70a426f04 Update approximate size calculation 2019-07-10 15:00:50 -07:00
Jingyu Zhou 0802df2c8f Convert size from int to string before pushing onto stack
Using int is troublesome because the size of int can be different from the
desired 64 bits. So, using a string representation seems to be more consistent.
2019-07-10 14:58:35 -07:00
Jingyu Zhou 9d12843a26 Push size as tuple to stack 2019-07-10 14:58:35 -07:00
Jingyu Zhou 78a5838312 Address reivew comments for PR #1756 2019-07-10 14:58:07 -07:00
Jingyu Zhou 7d6a317f2c Fix a type error 2019-07-10 14:58:07 -07:00
Jingyu Zhou c17b314c3b Add a C binding unit test for fdb_transaction_get_approximate_size 2019-07-10 14:58:07 -07:00
Jingyu Zhou 8ef8b59fcc Use ThreadFuture for getApproximateSize
Change return type to int64_t and fix C and Python binding to use the correct
type.
2019-07-10 14:58:07 -07:00
Jingyu Zhou c50a675bf0 Add transaction getApproximateSize() API
The size is the summation of expected size of mutations, read conflict ranges,
and write conflict ranges.
2019-07-10 14:51:52 -07:00
mpilman 7bfda1faaa Fixed three more Windows issues
This is now compiling on my Windows machine
2019-06-27 11:39:36 -07:00
Andrew Noyes 231577adc6 Fix gcc9 warning 2019-06-25 14:35:32 -07:00
Evan Tschannen 0fe6edc254
Merge pull request #1678 from mpilman/features/external-workload
Features/external workload
2019-06-25 13:53:19 -07:00
Alvin Moore 8ff5150470
Merge pull request #1636 from atn34/export-libfdb_c
Export libfdb c
2019-06-24 13:08:41 -07:00
mpilman ab7562160c Made JavaWorkload an external workload 2019-06-19 13:03:41 -07:00
mpilman 5150782e86 SimpleWorkload now succeeding 2019-06-19 13:03:41 -07:00
mpilman 2eff2b7e21 First simple test is working (but very buggy) 2019-06-19 13:03:41 -07:00
mpilman 1707f068e0 started implementation first c workload 2019-06-19 13:03:41 -07:00
mpilman c8957d93f8 Implementation code complete 2019-06-19 13:03:41 -07:00
Kao Makino 899db09a87 Fix retry logic 2019-06-12 12:38:07 -07:00
Andrew Noyes f5e7b8b165 Support pkg-config 2019-06-09 15:21:36 -07:00
Andrew Noyes 9af6326e1b Make find_package work 2019-06-09 15:21:36 -07:00
Andrew Noyes 882523330c include(/path/to/cmake/file) now works for fdb_c 2019-06-09 15:21:36 -07:00
Andrew Noyes cabe41626c Prepare for exporting fdb_c 2019-06-09 15:21:36 -07:00
Andrew Noyes 2b07a0559e Install headers in foundationdb dir 2019-06-09 15:21:36 -07:00
Kao Makino 431513c654 Make mako sources a variable 2019-06-06 16:58:11 -07:00
Kao Makino db300f71c5 Build mako automatically 2019-06-06 14:53:26 -07:00
Kao Makino c812224ddb Adjust mako.rst formatting 2019-06-05 17:26:40 -07:00
Kao Makino d2d5d52dca add mako.rst 2019-06-05 17:21:26 -07:00
Kao Makino 8a3facbb77 Add the error handling for commits 2019-06-05 13:19:53 -07:00
Kao Makino 1c7fa2bc7a Update build instruction 2019-06-04 17:38:05 -07:00
Kao Makino 42c14dcdc2 Fix build stuff 2019-06-04 17:35:47 -07:00
Kao Makino ae0a5388c9 mako creation 2019-05-30 09:01:22 -07:00
Alvin Moore 3acaa7343e Enabled C++17 for all Windows projects
Set Visual Studio version to 2017 (first version to support C++17)
2019-05-16 17:44:13 -07:00
Alvin Moore 94aed513c7 Switched Windows tools within projects to 2017 2019-05-16 15:05:11 -07:00
Alvin Moore 2ed1176d6a Add support for statically linking stdc++ to libfdbc_c on Centos while using custom hack for Ubuntu
Set compilationn flag to c++17
2019-05-15 02:37:16 -07:00
Alvin Moore b0362a654e Removed the debug compilation command display 2019-05-13 23:30:41 -07:00
Alvin Moore 7e4da69343 Added stdc++ library to link libraries 2019-05-13 23:25:00 -07:00