Fix-4415: Fixes the Live Query Panic issue (#4437)

This commit is contained in:
Aman Kumar 2024-07-30 12:16:21 +05:30 committed by GitHub
parent bf2eb32f01
commit 6e87f3ef66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,7 +232,7 @@ impl Datastore {
let end = crate::key::table::lq::suffix(&ns.name, &db.name, &tb.name); let end = crate::key::table::lq::suffix(&ns.name, &db.name, &tb.name);
let mut next = Some(beg..end); let mut next = Some(beg..end);
while let Some(rng) = next { while let Some(rng) = next {
let res = catch!(txn, txn.batch(rng, *NORMAL_FETCH_SIZE, false)); let res = catch!(txn, txn.batch(rng, *NORMAL_FETCH_SIZE, true));
next = res.next; next = res.next;
for (k, v) in res.values.iter() { for (k, v) in res.values.iter() {
// Decode the LIVE query statement // Decode the LIVE query statement