mirror of
https://github.com/isar/libmdbx.git
synced 2025-05-21 20:47:46 +08:00
mdbx-doc: исправление опечаток/повторов в комментариях.
This commit is contained in:
parent
1fff1f67d5
commit
d9c5e40360
8
mdbx.h
8
mdbx.h
@ -136,7 +136,7 @@ are only a few cases of changing data.
|
|||||||
| _DELETING_|||
|
| _DELETING_|||
|
||||||
|Key is absent → Error since no such key |\ref mdbx_del() or \ref mdbx_replace()|Error \ref MDBX_NOTFOUND|
|
|Key is absent → Error since no such key |\ref mdbx_del() or \ref mdbx_replace()|Error \ref MDBX_NOTFOUND|
|
||||||
|Key exist → Delete by key |\ref mdbx_del() with the parameter `data = NULL`|Deletion|
|
|Key exist → Delete by key |\ref mdbx_del() with the parameter `data = NULL`|Deletion|
|
||||||
|Key exist → Delete by key with with data matching check|\ref mdbx_del() with the parameter `data` filled with the value which should be match for deletion|Deletion or \ref MDBX_NOTFOUND if the value does not match|
|
|Key exist → Delete by key with data matching check|\ref mdbx_del() with the parameter `data` filled with the value which should be match for deletion|Deletion or \ref MDBX_NOTFOUND if the value does not match|
|
||||||
|Delete at the current cursor position |\ref mdbx_cursor_del() with \ref MDBX_CURRENT flag|Deletion|
|
|Delete at the current cursor position |\ref mdbx_cursor_del() with \ref MDBX_CURRENT flag|Deletion|
|
||||||
|Extract (read & delete) value by the key |\ref mdbx_replace() with zero flag and parameter `new_data = NULL`|Returning a deleted value|
|
|Extract (read & delete) value by the key |\ref mdbx_replace() with zero flag and parameter `new_data = NULL`|Returning a deleted value|
|
||||||
|
|
||||||
@ -1414,7 +1414,7 @@ enum MDBX_env_flags_t {
|
|||||||
* \ref mdbx_env_set_syncbytes() and \ref mdbx_env_set_syncperiod() functions
|
* \ref mdbx_env_set_syncbytes() and \ref mdbx_env_set_syncperiod() functions
|
||||||
* could be very useful with `MDBX_SAFE_NOSYNC` flag.
|
* could be very useful with `MDBX_SAFE_NOSYNC` flag.
|
||||||
*
|
*
|
||||||
* The number and volume of of disk IOPs with MDBX_SAFE_NOSYNC flag will
|
* The number and volume of disk IOPs with MDBX_SAFE_NOSYNC flag will
|
||||||
* exactly the as without any no-sync flags. However, you should expect a
|
* exactly the as without any no-sync flags. However, you should expect a
|
||||||
* larger process's [work set](https://bit.ly/2kA2tFX) and significantly worse
|
* larger process's [work set](https://bit.ly/2kA2tFX) and significantly worse
|
||||||
* a [locality of reference](https://bit.ly/2mbYq2J), due to the more
|
* a [locality of reference](https://bit.ly/2mbYq2J), due to the more
|
||||||
@ -5266,7 +5266,7 @@ LIBMDBX_API int mdbx_dbi_sequence(MDBX_txn *txn, MDBX_dbi dbi, uint64_t *result,
|
|||||||
* This returns a comparison as if the two data items were keys in the
|
* This returns a comparison as if the two data items were keys in the
|
||||||
* specified database.
|
* specified database.
|
||||||
*
|
*
|
||||||
* \warning There ss a Undefined behavior if one of arguments is invalid.
|
* \warning There is a Undefined behavior if one of arguments is invalid.
|
||||||
*
|
*
|
||||||
* \param [in] txn A transaction handle returned by \ref mdbx_txn_begin().
|
* \param [in] txn A transaction handle returned by \ref mdbx_txn_begin().
|
||||||
* \param [in] dbi A database handle returned by \ref mdbx_dbi_open().
|
* \param [in] dbi A database handle returned by \ref mdbx_dbi_open().
|
||||||
@ -5291,7 +5291,7 @@ mdbx_get_keycmp(MDBX_db_flags_t flags);
|
|||||||
* This returns a comparison as if the two items were data items of the
|
* This returns a comparison as if the two items were data items of the
|
||||||
* specified database.
|
* specified database.
|
||||||
*
|
*
|
||||||
* \warning There ss a Undefined behavior if one of arguments is invalid.
|
* \warning There is a Undefined behavior if one of arguments is invalid.
|
||||||
*
|
*
|
||||||
* \param [in] txn A transaction handle returned by \ref mdbx_txn_begin().
|
* \param [in] txn A transaction handle returned by \ref mdbx_txn_begin().
|
||||||
* \param [in] dbi A database handle returned by \ref mdbx_dbi_open().
|
* \param [in] dbi A database handle returned by \ref mdbx_dbi_open().
|
||||||
|
2
mdbx.h++
2
mdbx.h++
@ -878,7 +878,7 @@ struct LIBMDBX_API_TYPE slice : public ::MDBX_val {
|
|||||||
/// \brief Checks whether the content of the slice is printable.
|
/// \brief Checks whether the content of the slice is printable.
|
||||||
/// \param [in] disable_utf8 By default if `disable_utf8` is `false` function
|
/// \param [in] disable_utf8 By default if `disable_utf8` is `false` function
|
||||||
/// checks that content bytes are printable ASCII-7 characters or a valid UTF8
|
/// checks that content bytes are printable ASCII-7 characters or a valid UTF8
|
||||||
/// sequences. Otherwise, if if `disable_utf8` is `true` function checks that
|
/// sequences. Otherwise, if `disable_utf8` is `true` function checks that
|
||||||
/// content bytes are printable extended 8-bit ASCII codes.
|
/// content bytes are printable extended 8-bit ASCII codes.
|
||||||
MDBX_NOTHROW_PURE_FUNCTION bool
|
MDBX_NOTHROW_PURE_FUNCTION bool
|
||||||
is_printable(bool disable_utf8 = false) const noexcept;
|
is_printable(bool disable_utf8 = false) const noexcept;
|
||||||
|
@ -891,7 +891,7 @@ typedef struct MDBX_reader {
|
|||||||
/* The header for the reader table (a memory-mapped lock file). */
|
/* The header for the reader table (a memory-mapped lock file). */
|
||||||
typedef struct MDBX_lockinfo {
|
typedef struct MDBX_lockinfo {
|
||||||
/* Stamp identifying this as an MDBX file.
|
/* Stamp identifying this as an MDBX file.
|
||||||
* It must be set to MDBX_MAGIC with with MDBX_LOCK_VERSION. */
|
* It must be set to MDBX_MAGIC with MDBX_LOCK_VERSION. */
|
||||||
uint64_t mti_magic_and_version;
|
uint64_t mti_magic_and_version;
|
||||||
|
|
||||||
/* Format of this lock file. Must be set to MDBX_LOCK_FORMAT. */
|
/* Format of this lock file. Must be set to MDBX_LOCK_FORMAT. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user