rocksdb/utilities
Andrew Kryczka e5e545a021 Reunite checkpoint and backup core logic
Summary:
These code paths forked when checkpoint was introduced by copy/pasting the core backup logic. Over time they diverged and bug fixes were sometimes applied to one but not the other (like fix to include all relevant WALs for 2PC), or it required extra effort to fix both (like fix to forge CURRENT file). This diff reunites the code paths by extracting the core logic into a function, CreateCustomCheckpoint(), that is customizable via callbacks to implement both checkpoint and backup.

Related changes:

- flush_before_backup is now forcibly enabled when 2PC is enabled
- Extracted CheckpointImpl class definition into a header file. This is so the function, CreateCustomCheckpoint(), can be called by internal rocksdb code but not exposed to users.
- Implemented more functions in DummyDB/DummyLogFile (in backupable_db_test.cc) that are used by CreateCustomCheckpoint().
Closes https://github.com/facebook/rocksdb/pull/1932

Differential Revision: D4622986

Pulled By: ajkr

fbshipit-source-id: 157723884236ee3999a682673b64f7457a7a0d87
2017-04-24 15:06:46 -07:00
..
backupable Reunite checkpoint and backup core logic 2017-04-24 15:06:46 -07:00
blob_db Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
checkpoint Reunite checkpoint and backup core logic 2017-04-24 15:06:46 -07:00
compaction_filters
convenience
date_tiered Reduce the number of params needed to construct DBIter 2017-04-10 11:14:14 -07:00
document
geodb
leveldb_options
lua Level-based L0->L0 compaction 2017-04-04 18:09:11 -07:00
memory
merge_operators
option_change_migration
options Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
persistent_cache AIX and Solaris Sparc Support 2017-04-21 20:48:04 -07:00
redis
simulator_cache Add erase option to release cache 2017-04-24 11:28:36 -07:00
spatialdb Change Build Env to gcc-5 2017-04-14 11:12:56 -07:00
table_properties_collectors
transactions StackableDB should pass ResetStats() 2017-04-20 16:11:56 -07:00
ttl Move various string utility functions into string_util 2017-04-06 14:54:12 -07:00
write_batch_with_index Limit maximum memory used in the WriteBatch representation 2017-04-10 15:42:26 -07:00
col_buf_decoder.cc
col_buf_decoder.h
col_buf_encoder.cc
col_buf_encoder.h
column_aware_encoding_exp.cc
column_aware_encoding_test.cc AIX and Solaris Sparc Support 2017-04-21 20:48:04 -07:00
column_aware_encoding_util.cc
column_aware_encoding_util.h Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
env_librados.cc
env_librados.md
env_librados_test.cc Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
env_mirror.cc
env_mirror_test.cc Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
env_timed.cc Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
env_timed_test.cc add TimedEnv 2017-04-04 11:24:12 -07:00
merge_operators.h
object_registry_test.cc
util_merge_operators_test.cc