1
0
mirror of https://github.com/facebook/rocksdb.git synced 2026-10-23 08:09:02 +03:00
Files
rocksdb/util
Yu Zhang 6c564e2e17 Add some convenience util APIs to facilitate using U64Ts (#11888)
Summary:
Added some util function APIs to facilitate using the U64Ts.

The U64Ts format for encoding a timestamp is not entirely RocksDB internal. When users are using the user-defined timestamp feature from the transaction layer, its public APIs including `SetCommitTimestamp`, `GetCommitTimestamp`, `SetReadTimestampForValidation` are taking and returning timestamps as uint64_t.  But if users want to use the APIs from the DB layer, including populating `ReadOptions.timestamp`, interpreting `Iterator::timestamp()`, these APIs are using and returning U64Ts timestamps as an encoded Slice.  So these util functions are added to facilitate the usage.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/11888

Reviewed By: ltamasi

Differential Revision: D49620709

Pulled By: jowlyzhang

fbshipit-source-id: ace8d782ee7c3372cf410abf761320d373e495e1
2023-09-25 19:00:39 -07:00
..
2023-01-27 13:14:19 -08:00
2022-08-11 12:45:50 -07:00
2023-06-27 11:58:29 -07:00
2023-04-03 10:41:00 -07:00
2021-08-20 18:41:51 -07:00
2023-02-08 20:14:57 -08:00
2023-01-27 13:14:19 -08:00
2023-01-27 13:14:19 -08:00
2023-01-27 13:14:19 -08:00
2023-09-05 14:44:17 -07:00
2023-09-05 14:44:17 -07:00