mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-07-03 14:14:11 +00:00
Move *scan function from Command to IncRedis.
Pass down IncRedis as required to fix the build.
This commit is contained in:
parent
d0242e2721
commit
64b87c52bb
11 changed files with 82 additions and 82 deletions
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
|
||||
#include "find.hpp"
|
||||
#include "command.hpp"
|
||||
#include "incredis.hpp"
|
||||
#include "helpers/lexical_cast.hpp"
|
||||
#include "dindexerConfig.h"
|
||||
#include "dindexer-core/split_tags.hpp"
|
||||
|
@ -64,7 +64,7 @@ namespace dindb {
|
|||
}
|
||||
} //unnamed namespace
|
||||
|
||||
std::vector<GroupIDType> find_all_sets (redis::Command& parRedis) {
|
||||
std::vector<GroupIDType> find_all_sets (redis::IncRedis& parRedis) {
|
||||
using dincore::split_and_trim;
|
||||
using dinhelp::lexical_cast;
|
||||
|
||||
|
@ -75,7 +75,7 @@ namespace dindb {
|
|||
return retval;
|
||||
}
|
||||
|
||||
std::vector<LocatedItem> locate_in_db (redis::Command& parRedis, const std::string& parSearch, const TagList& parTags) {
|
||||
std::vector<LocatedItem> locate_in_db (redis::IncRedis& parRedis, const std::string& parSearch, const TagList& parTags) {
|
||||
using dincore::split_and_trim;
|
||||
using dinhelp::lexical_cast;
|
||||
|
||||
|
@ -87,7 +87,7 @@ namespace dindb {
|
|||
ids.reserve(prefetch_count);
|
||||
|
||||
int curr_count = 0;
|
||||
auto batch = parRedis.make_batch();
|
||||
auto batch = parRedis.command().make_batch();
|
||||
for (const auto& itm : parRedis.scan(PROGRAM_NAME ":file:*")) {
|
||||
++curr_count;
|
||||
batch.run("HMGET", itm, "path", "group_id", "tags");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue