commit | 4a81bbc1d4a40f8242bc0fca29c7dc2925e70040 | [log] [tgz] |
---|---|---|
author | Sahana Rao <sahanas@google.com> | Tue Apr 07 13:01:21 2020 +0100 |
committer | Sahana Rao <sahanas@google.com> | Tue Apr 14 09:21:33 2020 +0000 |
tree | a87970a9726e86755551977a3c7e838cbdf8cdda | |
parent | 1aa9bb5e2056de0a7384f58c20910a2db24ed62f [diff] |
Handle shared user ID in upsert. Double inserts are treated as upsert if calling package is the owner of the database row. When FUSE inserts a db row, it picks first package name from shared uid package names. The second insert may not have the same package name as the owner package name used by first FUSE insert. Check for all possible package names while handling shared uids. Test: atest testUpsert Bug: 149842708 Change-Id: I1b40e2312465630cfcca6a9c48c9fa8dfe2e0667