In the case of node meta tags, the values to save should be the revision ID, and the node ID; the revision ID is necessary to support the node revisions, while the node ID is necessary to remove the meta tags of a deleted node.
The code saves the node ID, but then it uses it as revision ID.
Comments
Comment #1
avpadernoThe database schema has been already changed to include a new table field for this purpose.