Skip to content

Commit

Permalink
Allow adding external v1 sst file with no global seqno support
Browse files Browse the repository at this point in the history
Summary:
This is a follow up fix for facebook#1783. After it, we should be able to ingest external v1 sst files with no global seqno field.
Closes facebook#1874

Differential Revision: D4576194

Pulled By: IslamAbdelRahman

fbshipit-source-id: 5b34a3e
  • Loading branch information
shuzhang1989 authored and facebook-github-bot committed Feb 17, 2017
1 parent aa0298f commit 756c592
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/external_sst_file_ingestion_job.cc
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ Status ExternalSstFileIngestionJob::GetIngestedFileInfo(
} else if (file_to_ingest->version == 1) {
// SST file V1 should not have global seqno field
assert(seqno_iter == uprops.end());
file_to_ingest->original_seqno = 0;
if (ingestion_options_.allow_blocking_flush ||
ingestion_options_.allow_global_seqno) {
return Status::InvalidArgument(
Expand Down

0 comments on commit 756c592

Please sign in to comment.