You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
365 B
14 lines
365 B
--- dbid: 0 -> 1
|
|
--- dbid: 1 -> 0
|
|
--- dbid: others -> drop
|
|
function filter(id, is_base, group, cmd_name, keys, slots, db_id, timestamp_ms)
|
|
if db_id == 0 then
|
|
-- print("db_id is 0, redirect to 1")
|
|
return 0, 1
|
|
elseif db_id == 1 then
|
|
-- print("db_id is 1, redirect to 0")
|
|
return 0, 0
|
|
else
|
|
return 1, db_id
|
|
end
|
|
end |