rocksdb/include/rocksdb/utilities
Maysam Yabandeh eb5a295440 WritePrepared Txn: add write_committed option to dump_wal
Summary:
Currently dump_wal cannot print the prepared records from the WAL that is generated by WRITE_PREPARED write policy since the default reaction of the handler is to return NotSupported if markers of WRITE_PREPARED are encountered. This patch enables the admin to pass --write_committed=false option, which will be accordingly passed to the handler. Note that DBFileDumperCommand and DBDumperCommand are still not updated by this patch but firstly they are not urgent and secondly we need to revise this approach later when we also add WRITE_UNPREPARED markers so I leave it for future work.

Tested by running it on a WAL generated by WRITE_PREPARED:
$ ./ldb dump_wal --walfile=/dev/shm/dbbench/000003.log  | grep BEGIN_PREARE | head -1
1,2,70,0,BEGIN_PREARE
$ ./ldb dump_wal --walfile=/dev/shm/dbbench/000003.log --write_committed=false | grep BEGIN_PREARE | head -1
1,2,70,0,BEGIN_PREARE PUT(0) : 0x30303031313330313938 PUT(0) : 0x30303032353732313935 END_PREPARE(0x74786E31313535383434323738303738363938313335312D30)
Closes https://github.com/facebook/rocksdb/pull/3682

Differential Revision: D7522090

Pulled By: maysamyabandeh

fbshipit-source-id: a0332207261c61e18b2f9dfbe9feecd9a1339aca
2018-04-07 21:56:42 -07:00
..
lua Change RocksDB License 2017-07-15 16:11:23 -07:00
backupable_db.h protect valid backup files when max_valid_backups_to_open is set 2018-04-05 21:13:21 -07:00
checkpoint.h Change RocksDB License 2017-07-15 16:11:23 -07:00
convenience.h Change RocksDB License 2017-07-15 16:11:23 -07:00
date_tiered_db.h Change RocksDB License 2017-07-15 16:11:23 -07:00
db_ttl.h Add possibility to change ttl on open DB 2018-01-18 10:42:15 -08:00
debug.h Blob DB: Inline small values in base DB 2017-10-26 12:30:54 -07:00
document_db.h Change RocksDB License 2017-07-15 16:11:23 -07:00
env_librados.h Change RocksDB License 2017-07-15 16:11:23 -07:00
env_mirror.h Enable MSVC W4 with a few exceptions. Fix warnings and bugs 2017-10-19 10:57:12 -07:00
geo_db.h Comment out unused variables 2018-03-05 13:13:41 -08:00
info_log_finder.h Change RocksDB License 2017-07-15 16:11:23 -07:00
json_document.h Change RocksDB License 2017-07-15 16:11:23 -07:00
ldb_cmd_execute_result.h Change RocksDB License 2017-07-15 16:11:23 -07:00
ldb_cmd.h WritePrepared Txn: add write_committed option to dump_wal 2018-04-07 21:56:42 -07:00
leveldb_options.h Change RocksDB License 2017-07-15 16:11:23 -07:00
memory_util.h Change RocksDB License 2017-07-15 16:11:23 -07:00
object_registry.h Change RocksDB License 2017-07-15 16:11:23 -07:00
optimistic_transaction_db.h Make Optimistic Tx database stackable 2018-04-03 15:28:40 -07:00
option_change_migration.h Change RocksDB License 2017-07-15 16:11:23 -07:00
options_util.h Change RocksDB License 2017-07-15 16:11:23 -07:00
sim_cache.h CacheActivityLogger, component to log cache activity into a file 2017-07-28 12:36:48 -07:00
spatial_db.h Change RocksDB License 2017-07-15 16:11:23 -07:00
stackable_db.h allowing CompactFiles to return new file names 2018-03-15 11:58:12 -07:00
table_properties_collectors.h Change RocksDB License 2017-07-15 16:11:23 -07:00
transaction_db_mutex.h Change RocksDB License 2017-07-15 16:11:23 -07:00
transaction_db.h Fix some typos in comments and docs. 2018-03-08 10:27:25 -08:00
transaction.h Fix some typos in comments and docs. 2018-03-08 10:27:25 -08:00
utility_db.h Ensure Windows build w/o port/port.h in public headers 2015-07-16 12:10:16 -07:00
write_batch_with_index.h Fix some typos in comments and docs. 2018-03-08 10:27:25 -08:00