mirror of
https://github.com/typesense/typesense.git
synced 2025-05-20 21:52:23 +08:00
Don't consider failed imports for progress calculation.
This commit is contained in:
parent
703110264a
commit
6621280ffc
@ -44,7 +44,6 @@ void BatchedIndexer::enqueue(const std::shared_ptr<http_req>& req, const std::sh
|
||||
//LOG(INFO) << "req_id: " << req->start_ts << ", chunk_sequence: " << chunk_sequence;
|
||||
|
||||
store->insert(request_chunk_key, req->serialize());
|
||||
queued_writes++;
|
||||
req->body = "";
|
||||
|
||||
{
|
||||
@ -62,6 +61,8 @@ void BatchedIndexer::enqueue(const std::shared_ptr<http_req>& req, const std::sh
|
||||
if(req->last_chunk_aggregate) {
|
||||
//LOG(INFO) << "Last chunk for req_id: " << req->start_ts << ", queue_id: " << queue_id;
|
||||
|
||||
queued_writes += (chunk_sequence + 1);
|
||||
|
||||
{
|
||||
std::unique_lock lk(qmutuxes[queue_id]);
|
||||
queues[queue_id].emplace_back(req->start_ts);
|
||||
|
Loading…
x
Reference in New Issue
Block a user