Yes, this is the id used in the DB. get_next_id is the local one a few lines up. I didn't know if there was a global one, which is what I wanted (but I couldn't find). This is one of the things preventing me running the Clang and Rust plugins at the same time. I figured it would be easy to fix just by using a global get_next_id, so I could leave it till later (we need to fix the filters stuff for that too).