fdb 7.4.8 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fdb.rb +2 -2
- data/lib/fdbdirectory.rb +1 -1
- data/lib/fdbimpl.rb +3 -2
- data/lib/fdbimpl_v609.rb +1 -1
- data/lib/fdblocality.rb +1 -1
- data/lib/fdboptions.rb +3 -2
- data/lib/fdbsubspace.rb +1 -1
- data/lib/fdbtuple.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0d60911ebcaa8c9bfe07deaff0bce78efcbebae32716ba6d82ed4320a538c1c
|
|
4
|
+
data.tar.gz: f6c6c8a14ff579afaa652bfe0e35b2d448919a54659d9a52164a4d391b6e451e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71f132e7611d1cd13aedd6ecc7cb0c0232be540405210f1bc75c1062e3fe002f75bddd75cae44b6bb9ca46ee1b41f18dba1da826cb817782ff0682f8d11cc0de
|
|
7
|
+
data.tar.gz: 0ad93d4ff7fd0fa47e3dcf3c0d0ee743e22b88cf3d192981016ea8e7fca3e0d8e2012f1f3af13e91704006c65b2003c56f8c6bc502185a7c6a2c362ecb0c35f8
|
data/lib/fdb.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#
|
|
4
4
|
# This source file is part of the FoundationDB open source project
|
|
5
5
|
#
|
|
6
|
-
# Copyright 2013-
|
|
6
|
+
# Copyright 2013-2026 Apple Inc. and the FoundationDB project authors
|
|
7
7
|
#
|
|
8
8
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
9
|
# you may not use this file except in compliance with the License.
|
|
@@ -36,7 +36,7 @@ module FDB
|
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
def self.api_version(version)
|
|
39
|
-
header_version =
|
|
39
|
+
header_version = 800
|
|
40
40
|
if self.is_api_version_selected?()
|
|
41
41
|
if @@chosen_version != version
|
|
42
42
|
raise "FDB API already loaded at version #{@@chosen_version}."
|
data/lib/fdbdirectory.rb
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
#
|
|
6
6
|
# This source file is part of the FoundationDB open source project
|
|
7
7
|
#
|
|
8
|
-
# Copyright 2013-
|
|
8
|
+
# Copyright 2013-2026 Apple Inc. and the FoundationDB project authors
|
|
9
9
|
#
|
|
10
10
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
11
|
# you may not use this file except in compliance with the License.
|
data/lib/fdbimpl.rb
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
#
|
|
6
6
|
# This source file is part of the FoundationDB open source project
|
|
7
7
|
#
|
|
8
|
-
# Copyright 2013-
|
|
8
|
+
# Copyright 2013-2026 Apple Inc. and the FoundationDB project authors
|
|
9
9
|
#
|
|
10
10
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
11
|
# you may not use this file except in compliance with the License.
|
|
@@ -89,6 +89,7 @@ module FDB
|
|
|
89
89
|
attach_function :fdb_future_get_key, [ :pointer, :pointer, :pointer ], :fdb_error
|
|
90
90
|
attach_function :fdb_future_get_value, [ :pointer, :pointer, :pointer, :pointer ], :fdb_error
|
|
91
91
|
attach_function :fdb_future_get_keyvalue_array, [ :pointer, :pointer, :pointer, :pointer ], :fdb_error
|
|
92
|
+
attach_function :fdb_future_get_key_array, [ :pointer, :pointer, :pointer ], :fdb_error
|
|
92
93
|
attach_function :fdb_future_get_string_array, [ :pointer, :pointer, :pointer ], :fdb_error
|
|
93
94
|
|
|
94
95
|
attach_function :fdb_create_database, [ :string, :pointer ], :fdb_error
|
|
@@ -485,7 +486,7 @@ module FDB
|
|
|
485
486
|
|
|
486
487
|
ks = FFI::MemoryPointer.new :pointer
|
|
487
488
|
count = FFI::MemoryPointer.new :int
|
|
488
|
-
FDBC.check_error FDBC.fdb_future_get_key_array(@fpointer,
|
|
489
|
+
FDBC.check_error FDBC.fdb_future_get_key_array(@fpointer, ks, count)
|
|
489
490
|
ks = ks.read_pointer
|
|
490
491
|
|
|
491
492
|
(0..count.read_int-1).map{|i|
|
data/lib/fdbimpl_v609.rb
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
#
|
|
6
6
|
# This source file is part of the FoundationDB open source project
|
|
7
7
|
#
|
|
8
|
-
# Copyright 2013-
|
|
8
|
+
# Copyright 2013-2026 Apple Inc. and the FoundationDB project authors
|
|
9
9
|
#
|
|
10
10
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
11
|
# you may not use this file except in compliance with the License.
|
data/lib/fdblocality.rb
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
#
|
|
6
6
|
# This source file is part of the FoundationDB open source project
|
|
7
7
|
#
|
|
8
|
-
# Copyright 2013-
|
|
8
|
+
# Copyright 2013-2026 Apple Inc. and the FoundationDB project authors
|
|
9
9
|
#
|
|
10
10
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
11
|
# you may not use this file except in compliance with the License.
|
data/lib/fdboptions.rb
CHANGED
|
@@ -69,6 +69,7 @@ module FDB
|
|
|
69
69
|
"CLIENT_BUGGIFY_DISABLE" => [81, "Disable client buggify", nil, nil],
|
|
70
70
|
"CLIENT_BUGGIFY_SECTION_ACTIVATED_PROBABILITY" => [82, "Set the probability of a CLIENT_BUGGIFY section being active for the current execution.", 0, "probability expressed as a percentage between 0 and 100"],
|
|
71
71
|
"CLIENT_BUGGIFY_SECTION_FIRED_PROBABILITY" => [83, "Set the probability of an active CLIENT_BUGGIFY section being fired. A section will only fire if it was activated", 0, "probability expressed as a percentage between 0 and 100"],
|
|
72
|
+
"TRACE_IP" => [84, "Sets the IP address to use for tracing. If not provided, the IP address will be automatically determined when connecting to a cluster. This option allows you to specify the IP address explicitly and avoid the automatic determination process.", '', "IP address in IPv4 or IPv6 format"],
|
|
72
73
|
"DISTRIBUTED_CLIENT_TRACER" => [90, "Set a tracer to run on the client. Should be set to the same value as the tracer set on the server.", '', "Distributed tracer type. Choose from none, log_file, or network_lossy"],
|
|
73
74
|
"CLIENT_TMP_DIR" => [91, "Sets the directory for storing temporary files created by FDB client, such as temporary copies of client libraries. Defaults to /tmp", '', "Client directory for temporary files. "],
|
|
74
75
|
}
|
|
@@ -91,7 +92,6 @@ module FDB
|
|
|
91
92
|
"TRANSACTION_BYPASS_UNREADABLE" => [700, "Allows ``get`` operations to read from sections of keyspace that have become unreadable because of versionstamp operations. This sets the ``bypass_unreadable`` option of each transaction created by this database. See the transaction option description for more information.", nil, nil],
|
|
92
93
|
"TRANSACTION_USED_DURING_COMMIT_PROTECTION_DISABLE" => [701, "By default, operations that are performed on a transaction while it is being committed will not only fail themselves, but they will attempt to fail other in-flight operations (such as the commit) as well. This behavior is intended to help developers discover situations where operations could be unintentionally executed after the transaction has been reset. Setting this option removes that protection, causing only the offending operation to fail.", nil, nil],
|
|
93
94
|
"TRANSACTION_REPORT_CONFLICTING_KEYS" => [702, "Enables conflicting key reporting on all transactions, allowing them to retrieve the keys that are conflicting with other transactions.", nil, nil],
|
|
94
|
-
"USE_CONFIG_DATABASE" => [800, "Use configuration database.", nil, nil],
|
|
95
95
|
"TEST_CAUSAL_READ_RISKY" => [900, "Enables verification of causal read risky by checking whether clients are able to read stale data when they detect a recovery, and logging an error if so.", 0, "integer between 0 and 100 expressing the probability a client will verify it can't read stale data"],
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -133,7 +133,7 @@ module FDB
|
|
|
133
133
|
"SNAPSHOT_RYW_DISABLE" => [601, "Snapshot read operations will not see the results of writes done in the same transaction. This was the default behavior prior to API version 300.", nil, nil],
|
|
134
134
|
"LOCK_AWARE" => [700, "The transaction can read and write to locked databases, and is responsible for checking that it took the lock.", nil, nil],
|
|
135
135
|
"USED_DURING_COMMIT_PROTECTION_DISABLE" => [701, "By default, operations that are performed on a transaction while it is being committed will not only fail themselves, but they will attempt to fail other in-flight operations (such as the commit) as well. This behavior is intended to help developers discover situations where operations could be unintentionally executed after the transaction has been reset. Setting this option removes that protection, causing only the offending operation to fail.", nil, nil],
|
|
136
|
-
"READ_LOCK_AWARE" => [702, "The transaction can read from locked databases.", nil, nil],
|
|
136
|
+
"READ_LOCK_AWARE" => [702, "The transaction can read from locked databases. This option will make the transaction read-only if the lock_aware option is not set.", nil, nil],
|
|
137
137
|
"USE_PROVISIONAL_PROXIES" => [711, "This option should only be used by tools which change the database configuration.", nil, nil],
|
|
138
138
|
"REPORT_CONFLICTING_KEYS" => [712, "The transaction can retrieve keys that are conflicting with other transactions.", nil, nil],
|
|
139
139
|
"SPECIAL_KEY_SPACE_RELAXED" => [713, "By default, the special key space will only allow users to read from exactly one module (a subspace in the special key space). Use this option to allow reading from zero or more modules. Users who set this option should be prepared for new modules, which may have different behaviors than the modules they're currently reading. For example, a new module might block or return an error.", nil, nil],
|
|
@@ -144,6 +144,7 @@ module FDB
|
|
|
144
144
|
"EXPENSIVE_CLEAR_COST_ESTIMATION_ENABLE" => [1000, "Asks storage servers for how many bytes a clear key range contains. Otherwise uses the location cache to roughly estimate this.", nil, nil],
|
|
145
145
|
"BYPASS_UNREADABLE" => [1100, "Allows ``get`` operations to read from sections of keyspace that have become unreadable because of versionstamp operations. These reads will view versionstamp operations as if they were set operations that did not fill in the versionstamp.", nil, nil],
|
|
146
146
|
"USE_GRV_CACHE" => [1101, "Allows this transaction to use cached GRV from the database context. Defaults to off. Upon first usage, starts a background updater to periodically update the cache to avoid stale read versions. The disable_client_bypass option must also be set.", nil, nil],
|
|
147
|
+
"MAX_GRV_QUEUE_DELAY" => [1103, "Rejects a GRV request with ``transaction_grv_queue_rejected`` if the GRV proxy estimates that ratekeeper throttling will keep the request queued longer than this limit. Valid parameter values are ``[0, INT_MAX]``. The estimate is advisory and only accounts for time spent queued at the GRV proxy due to ratekeeper throttling.", 0, "value in milliseconds of maximum estimated GRV queue delay"],
|
|
147
148
|
"AUTHORIZATION_TOKEN" => [2000, "Attach given authorization token to the transaction such that subsequent tenant-aware requests are authorized", '', "A JSON Web Token authorized to access data belonging to one or more tenants, indicated by 'tenants' claim of the token's payload."],
|
|
148
149
|
"ENABLE_REPLICA_CONSISTENCY_CHECK" => [4000, "Enables replica consistency check, which compares the results returned by storage server replicas (as many as specified by consistency_check_required_replicas option) for a given read request, in client-side load balancer.", nil, nil],
|
|
149
150
|
"CONSISTENCY_CHECK_REQUIRED_REPLICAS" => [4001, "Specifies the number of storage server replica results that the load balancer needs to compare when enable_replica_consistency_check option is set.", 0, "Number of storage replicas over which the load balancer consistency check is done."],
|
data/lib/fdbsubspace.rb
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
#
|
|
6
6
|
# This source file is part of the FoundationDB open source project
|
|
7
7
|
#
|
|
8
|
-
# Copyright 2013-
|
|
8
|
+
# Copyright 2013-2026 Apple Inc. and the FoundationDB project authors
|
|
9
9
|
#
|
|
10
10
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
11
|
# you may not use this file except in compliance with the License.
|
data/lib/fdbtuple.rb
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
#
|
|
6
6
|
# This source file is part of the FoundationDB open source project
|
|
7
7
|
#
|
|
8
|
-
# Copyright 2013-
|
|
8
|
+
# Copyright 2013-2026 Apple Inc. and the FoundationDB project authors
|
|
9
9
|
#
|
|
10
10
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
11
|
# you may not use this file except in compliance with the License.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 8.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- FoundationDB
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|