-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(online_migration): part3 - support ingestion_behind for pegasus #862
Conversation
src/server/rocksdb_wrapper.cpp
Outdated
@@ -180,9 +180,12 @@ int rocksdb_wrapper::write_batch_delete(int64_t decree, dsn::string_view raw_key | |||
|
|||
void rocksdb_wrapper::clear_up_write_batch() { _write_batch->Clear(); } | |||
|
|||
int rocksdb_wrapper::ingestion_files(int64_t decree, const std::vector<std::string> &sst_file_list) | |||
int rocksdb_wrapper::ingestion_files(int64_t decree, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about name it ingest_files
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/server/pegasus_server_impl.cpp
Outdated
{ | ||
const auto &iter = envs.find(ROCKSDB_ALLOW_INGEST_BEHIND); | ||
if (iter == envs.end()) { | ||
_allow_ingest_behind = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can set _db_opts.allow_ingest_behind
directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
…ad of dassert for duplication (#862)
As #851 show, we decide to support online migration.
This pull request support it for pegasus, including:
allow_ingest_behind
from app->envs, and set rocksdballow_ingest_behind
, reference functionstart
and functionupdate_allow_ingest_behind
.ingest_behind
for ingestion, referenceingest_files
functions.ingest_behind