Skip to content

Commit

Permalink
Fix for Subsetting databases #39
Browse files Browse the repository at this point in the history
  • Loading branch information
khb7840 committed Aug 9, 2023
1 parent 6e49d6d commit e856340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input_processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,14 @@ class DatabaseProcessor : public Processor {

DatabaseProcessor(const std::string& input, std::string& user_id_file) {
std::string index = input + ".index";
int mode = DB_READER_USE_DATA | DB_READER_USE_LOOKUP_REVERSE | DB_READER_USE_LOOKUP;
int mode = DB_READER_USE_DATA | DB_READER_USE_LOOKUP;
handle = make_reader(input.c_str(), index.c_str(), mode);
_read_id_list(user_id_file);
};

DatabaseProcessor(const std::string& input, const std::vector<std::string>& ids) {
std::string index = input + ".index";
int mode = DB_READER_USE_DATA | DB_READER_USE_LOOKUP_REVERSE | DB_READER_USE_LOOKUP;
int mode = DB_READER_USE_DATA | DB_READER_USE_LOOKUP;
handle = make_reader(input.c_str(), index.c_str(), mode);
user_ids = ids;
};
Expand Down

0 comments on commit e856340

Please sign in to comment.