fix blocking when upgrading db to v19
Merge pull request #395 from LipuFei/fix-dbv19-blocking

Fix blocking when upgrading db to v19