mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-22 23:03:57 +08:00
fixed compiler errors
This commit is contained in:
parent
a4071952db
commit
c4c9e6cee7
bindings
documentation/sphinx/source
fdbclient/vexillographer
@ -1562,7 +1562,7 @@ struct UnitTestsFunc : InstructionFunc {
|
|||||||
data->db->setDatabaseOption(FDBDatabaseOption::FDB_DB_OPTION_TRANSACTION_SIZE_LIMIT, Optional<StringRef>(StringRef((const uint8_t*)&sizeLimit, 8)));
|
data->db->setDatabaseOption(FDBDatabaseOption::FDB_DB_OPTION_TRANSACTION_SIZE_LIMIT, Optional<StringRef>(StringRef((const uint8_t*)&sizeLimit, 8)));
|
||||||
data->db->setDatabaseOption(FDBDatabaseOption::FDB_DB_OPTION_TRANSACTION_RETRY_LIMIT, Optional<StringRef>(StringRef((const uint8_t*)&retryLimit, 8)));
|
data->db->setDatabaseOption(FDBDatabaseOption::FDB_DB_OPTION_TRANSACTION_RETRY_LIMIT, Optional<StringRef>(StringRef((const uint8_t*)&retryLimit, 8)));
|
||||||
data->db->setDatabaseOption(FDBDatabaseOption::FDB_DB_OPTION_TRANSACTION_RETRY_LIMIT, Optional<StringRef>(StringRef((const uint8_t*)&noRetryLimit, 8)));
|
data->db->setDatabaseOption(FDBDatabaseOption::FDB_DB_OPTION_TRANSACTION_RETRY_LIMIT, Optional<StringRef>(StringRef((const uint8_t*)&noRetryLimit, 8)));
|
||||||
data->db->setDatabaseOption(FDBDatabaseOption::FDB_DB_OPTION_CAUSAL_READ_RISKY);
|
data->db->setDatabaseOption(FDBDatabaseOption::FDB_DB_OPTION_TRANSACTION_CAUSAL_READ_RISKY);
|
||||||
data->db->setDatabaseOption(FDBDatabaseOption::FDB_DB_OPTION_SNAPSHOT_RYW_ENABLE);
|
data->db->setDatabaseOption(FDBDatabaseOption::FDB_DB_OPTION_SNAPSHOT_RYW_ENABLE);
|
||||||
data->db->setDatabaseOption(FDBDatabaseOption::FDB_DB_OPTION_SNAPSHOT_RYW_DISABLE);
|
data->db->setDatabaseOption(FDBDatabaseOption::FDB_DB_OPTION_SNAPSHOT_RYW_DISABLE);
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ def test_db_options(db):
|
|||||||
db.options.set_transaction_size_limit(100000)
|
db.options.set_transaction_size_limit(100000)
|
||||||
db.options.set_transaction_retry_limit(10)
|
db.options.set_transaction_retry_limit(10)
|
||||||
db.options.set_transaction_retry_limit(-1)
|
db.options.set_transaction_retry_limit(-1)
|
||||||
db.options.set_causal_read_risky()
|
db.options.set_transaction_causal_read_risky()
|
||||||
db.options.set_snapshot_ryw_enable()
|
db.options.set_snapshot_ryw_enable()
|
||||||
db.options.set_snapshot_ryw_disable()
|
db.options.set_snapshot_ryw_disable()
|
||||||
|
|
||||||
|
@ -462,7 +462,7 @@ class Tester
|
|||||||
@db.options.set_transaction_size_limit(100000)
|
@db.options.set_transaction_size_limit(100000)
|
||||||
@db.options.set_transaction_retry_limit(10)
|
@db.options.set_transaction_retry_limit(10)
|
||||||
@db.options.set_transaction_retry_limit(-1)
|
@db.options.set_transaction_retry_limit(-1)
|
||||||
@db.options.set_causal_read_risky()
|
@db.options.set_transaction_causal_read_risky()
|
||||||
@db.options.set_snapshot_ryw_enable()
|
@db.options.set_snapshot_ryw_enable()
|
||||||
@db.options.set_snapshot_ryw_disable()
|
@db.options.set_snapshot_ryw_disable()
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
.. |timeout-database-option| replace:: :func:`Database.options.set_transaction_timeout`
|
.. |timeout-database-option| replace:: :func:`Database.options.set_transaction_timeout`
|
||||||
.. |max-retry-delay-database-option| replace:: :func:`Database.options.set_transaction_max_retry_delay`
|
.. |max-retry-delay-database-option| replace:: :func:`Database.options.set_transaction_max_retry_delay`
|
||||||
.. |transaction-size-limit-database-option| replace:: :func:`Database.options.set_transaction_size_limit`
|
.. |transaction-size-limit-database-option| replace:: :func:`Database.options.set_transaction_size_limit`
|
||||||
.. |causal-read-risky-database-option| replace:: :func:`Database.options.set_causal_read_risky`
|
.. |causal-read-risky-database-option| replace:: :func:`Database.options.set_transaction_causal_read_risky`
|
||||||
.. |snapshot-ryw-enable-database-option| replace:: :func:`Database.options.set_snapshot_ryw_enable`
|
.. |snapshot-ryw-enable-database-option| replace:: :func:`Database.options.set_snapshot_ryw_enable`
|
||||||
.. |snapshot-ryw-disable-database-option| replace:: :func:`Database.options.set_snapshot_ryw_disable`
|
.. |snapshot-ryw-disable-database-option| replace:: :func:`Database.options.set_snapshot_ryw_disable`
|
||||||
.. |future-type-string| replace:: a :ref:`future <api-python-future>`
|
.. |future-type-string| replace:: a :ref:`future <api-python-future>`
|
||||||
@ -386,7 +386,7 @@ Database options
|
|||||||
|
|
||||||
|option-db-tr-size-limit-blurb|
|
|option-db-tr-size-limit-blurb|
|
||||||
|
|
||||||
.. method:: Database.options.set_causal_read_risky()
|
.. method:: Database.options.set_transaction_causal_read_risky()
|
||||||
|
|
||||||
|option-db-causal-read-risky-blurb|
|
|option-db-causal-read-risky-blurb|
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
.. |timeout-database-option| replace:: :meth:`Database.options.set_transaction_timeout`
|
.. |timeout-database-option| replace:: :meth:`Database.options.set_transaction_timeout`
|
||||||
.. |max-retry-delay-database-option| replace:: :meth:`Database.options.set_transaction_max_retry_delay`
|
.. |max-retry-delay-database-option| replace:: :meth:`Database.options.set_transaction_max_retry_delay`
|
||||||
.. |transaction-size-limit-database-option| replace:: :func:`Database.options.set_transaction_size_limit`
|
.. |transaction-size-limit-database-option| replace:: :func:`Database.options.set_transaction_size_limit`
|
||||||
.. |causal-read-risky-database-option| replace:: :meth:`Database.options.set_causal_read_risky`
|
.. |causal-read-risky-database-option| replace:: :meth:`Database.options.set_transaction_causal_read_risky`
|
||||||
.. |snapshot-ryw-enable-database-option| replace:: :meth:`Database.options.set_snapshot_ryw_enable`
|
.. |snapshot-ryw-enable-database-option| replace:: :meth:`Database.options.set_snapshot_ryw_enable`
|
||||||
.. |snapshot-ryw-disable-database-option| replace:: :meth:`Database.options.set_snapshot_ryw_disable`
|
.. |snapshot-ryw-disable-database-option| replace:: :meth:`Database.options.set_snapshot_ryw_disable`
|
||||||
.. |future-type-string| replace:: a :class:`Future`
|
.. |future-type-string| replace:: a :class:`Future`
|
||||||
@ -382,7 +382,7 @@ Database options
|
|||||||
|
|
||||||
|option-db-tr-size-limit-blurb|
|
|option-db-tr-size-limit-blurb|
|
||||||
|
|
||||||
.. method:: Database.options.set_causal_read_risky() -> nil
|
.. method:: Database.options.set_transaction_causal_read_risky() -> nil
|
||||||
|
|
||||||
|option-db-causal-read-risky-blurb|
|
|option-db-causal-read-risky-blurb|
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ description is not currently required but encouraged.
|
|||||||
paramType="Int" paramDescription="value in bytes"
|
paramType="Int" paramDescription="value in bytes"
|
||||||
description="Set the maximum transaction size in bytes. This sets the ``size_limit`` option on each transaction created by this database. See the transaction option description for more information."
|
description="Set the maximum transaction size in bytes. This sets the ``size_limit`` option on each transaction created by this database. See the transaction option description for more information."
|
||||||
defaultFor="503"/>
|
defaultFor="503"/>
|
||||||
<Option name="transaction_casual_read_risky" code="504"
|
<Option name="transaction_causal_read_risky" code="504"
|
||||||
description="The read version will be committed, and usually will be the latest committed, but might not be the latest committed in the event of a simultaneous fault and misbehaving clock."
|
description="The read version will be committed, and usually will be the latest committed, but might not be the latest committed in the event of a simultaneous fault and misbehaving clock."
|
||||||
defaultFor="20"/>
|
defaultFor="20"/>
|
||||||
<!-- The snapshot RYW options act like defaults for the equivalent transaction options, but database defaults cannot have cumulative effects from multiple calls.
|
<!-- The snapshot RYW options act like defaults for the equivalent transaction options, but database defaults cannot have cumulative effects from multiple calls.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user