45 Commits

Author SHA1 Message Date
FDB Formatster
0c214d71da apply clang-format to *.c, *.cpp, *.h, *.hpp files 2021-03-05 16:31:35 -06:00
Andrew Noyes
01998a238f Add blockUntilReadyCheckOnMainThread 2020-09-17 20:26:28 +00:00
A.J. Beamon
93655c92e8 Add missing semicolon 2020-02-26 16:36:22 -08:00
A.J. Beamon
0f5c999d4b Better containment of boost errors related to TLS. 2020-02-26 12:26:43 -08:00
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
A.J. Beamon
bc5c65e5ab
Merge pull request #1756 from jzhou77/db-option
Add transaction getApproximateSize() API
2019-07-19 08:33:24 -07:00
A.J. Beamon
93be69b6a3 Increase the API version to 620. 2019-07-18 10:56:05 -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
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
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
A.J. Beamon
35cf87007c Update bindings/c/fdb_c.cpp 2019-04-08 14:49:10 -07:00
A.J. Beamon
a7288e1325 Throw process_behind instead of future_version when all storage nodes on a team are behind. process_behind gets the same backoff behavior as not_committed. Add proxy_memory_limit_exceeded to the retryable predicate. 2019-04-08 14:21:24 -07:00
A.J. Beamon
627b785a24 Fix: null handling for cluster file paths didn't work after merge 2019-01-11 10:04:05 -08:00
A.J. Beamon
bfa97d7ff2 Address review comments 2019-01-10 12:28:14 -08:00
A.J. Beamon
11cce3731b Merge branch 'master' into remove-cluster-from-bindings
# Conflicts:
#	bindings/c/fdb_c.cpp
2019-01-10 11:58:34 -08:00
A.J. Beamon
96b9cbcfcf fdb_c.cpp needs access to the legacy types, the C binding test uses the new API, and a couple javadoc links fixed. 2018-11-26 13:07:36 -08:00
A.J. Beamon
890a0f3e82 Merge branch 'master' into remove-cluster-from-bindings
# Conflicts:
#	bindings/flow/fdb_flow.actor.cpp
2018-11-26 12:01:03 -08:00
A.J. Beamon
b19ab6d3dc Don't use null as the cluster pointer if the cluster file path is null because the Java bindings don't work with a null cluster pointer. 2018-11-26 11:52:35 -08:00
Evan Tschannen
a654183f63
Merge pull request #791 from ajbeamon/remove-cluster-from-iclientapi
Remove cluster from IClientApi (phase 2 of removing DB names)
2018-11-10 10:16:18 -08:00
A.J. Beamon
983a5bd390 Bump API version to 610 2018-09-26 10:58:07 -07:00
A.J. Beamon
1b259dbc9d Initial work to remove clusters from our C API 2018-09-26 10:27:55 -07:00
A.J. Beamon
3eb4355a48 Some various cleanup and fixes. Added "Cluster" to TransactionMetrics trace event. 2018-09-25 15:06:19 -07:00
A.J. Beamon
09fba0647e Use new instead of malloc; fix off by one. 2018-09-25 11:15:54 -07:00
A.J. Beamon
6ae50f7016 Change cluster objects to be a char* for the cluster file path. Remove IDatabase::createDatabase. DLApi::createDatabase deletes the temporary cluster it creates. 2018-09-25 11:01:09 -07:00
A.J. Beamon
c831051474 This removes the idea of clusters from IClientApi. 2018-09-21 15:58:14 -07:00
A.J. Beamon
2a97139d5d This is the first step in eliminating the usage of database names in our code. The C API remains the same, but underneath that all usage of database names is eliminated. 2018-08-16 10:24:12 -07:00
Alec Grieser
46b8612566
bump API version from 520 to 600 2018-07-09 11:00:57 -07:00
A.J. Beamon
cfd50d83d4 Add comment and remove whitespace 2018-05-09 14:38:11 -07:00
A.J. Beamon
499a3c78dc Line ending fix 2018-05-09 10:32:02 -07:00
A.J. Beamon
01a3360982 Move addNetworkThreadCompletionHook to IClientApi. 2018-05-08 16:33:43 -07:00
Alec Grieser
285e1a1ccc bump API version to 520 2018-03-02 10:30:41 -08: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
Balachandar Namasivayam
8e0bea2795 Update API_VERSION from 500 to 510 2017-10-11 13:49:38 -07:00
A.J. Beamon
d886b95628 Merge pull request #131 from cie/33300740-with-shutdown-hooks
<rdar://problem/33300740> Java: support callbacks from external multi-version client threads
2017-10-04 09:17:25 -07:00
Evan Tschannen
ef41b07bb3 renamed past_version to transaction_too_old
implemented read_lock_aware option
2017-09-28 16:35:08 -07:00
Alec Grieser
80f559d148 changed name from thread_completion_hook to network_thread_completion_hook 2017-09-27 11:30:39 -07:00
Alec Grieser
d7e1b267be changed name from shutdown hook to thread completion hook ; added hook parameter 2017-09-26 17:00:04 -07:00
Alec Grieser
83bf2ee312 added add_shutdown_hook to fdb_c api and used it to detach java threads where appropriate 2017-07-25 15:57:26 -07:00
FDB Dev Team
a674cb4ef4 Initial repository commit 2017-05-25 13:48:44 -07:00