mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
Prefer using TaskDeletion in the dumps
This commit is contained in:
parent
1ca9a67c49
commit
591527a99d
@ -117,7 +117,7 @@ pub enum KindDump {
|
|||||||
query: String,
|
query: String,
|
||||||
tasks: Vec<TaskId>,
|
tasks: Vec<TaskId>,
|
||||||
},
|
},
|
||||||
DeleteTasks {
|
TasksDeletion {
|
||||||
query: String,
|
query: String,
|
||||||
tasks: RoaringBitmap,
|
tasks: RoaringBitmap,
|
||||||
},
|
},
|
||||||
@ -186,7 +186,7 @@ impl From<KindWithContent> for KindDump {
|
|||||||
KindDump::TaskCancelation { query, tasks }
|
KindDump::TaskCancelation { query, tasks }
|
||||||
}
|
}
|
||||||
KindWithContent::TaskDeletion { query, tasks } => {
|
KindWithContent::TaskDeletion { query, tasks } => {
|
||||||
KindDump::DeleteTasks { query, tasks }
|
KindDump::TasksDeletion { query, tasks }
|
||||||
}
|
}
|
||||||
KindWithContent::DumpExport {
|
KindWithContent::DumpExport {
|
||||||
dump_uid,
|
dump_uid,
|
||||||
|
@ -526,7 +526,7 @@ impl IndexScheduler {
|
|||||||
KindDump::TaskCancelation { query, tasks } => {
|
KindDump::TaskCancelation { query, tasks } => {
|
||||||
KindWithContent::TaskCancelation { query, tasks }
|
KindWithContent::TaskCancelation { query, tasks }
|
||||||
}
|
}
|
||||||
KindDump::DeleteTasks { query, tasks } => {
|
KindDump::TasksDeletion { query, tasks } => {
|
||||||
KindWithContent::TaskDeletion { query, tasks }
|
KindWithContent::TaskDeletion { query, tasks }
|
||||||
}
|
}
|
||||||
KindDump::DumpExport {
|
KindDump::DumpExport {
|
||||||
|
Loading…
Reference in New Issue
Block a user