mirror of
https://github.com/mozilla-services/syncstorage-rs.git
synced 2026-05-05 20:26:26 +02:00
f add conditions to batches
This commit is contained in:
parent
714168d107
commit
8cfbb8510c
@ -103,7 +103,11 @@ def spanner_purge(args):
|
||||
if args.mode in ["batches", "both"]:
|
||||
# Delete Batches. Also deletes child batch_bsos rows (INTERLEAVE
|
||||
# IN PARENT batches ON DELETE CASCADE)
|
||||
batch_query = 'DELETE FROM batches WHERE {}'.format(expiry_condition)
|
||||
batch_query = add_conditions(
|
||||
args,
|
||||
'DELETE FROM batches WHERE {}'.format(expiry_condition),
|
||||
prefix,
|
||||
)
|
||||
deleter(
|
||||
database,
|
||||
name="batches",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user