Avoid pragma writes on the sqlite repo when they're not needed.
commite583a92095b6fccbdf46ef578d220294a30f0cd8
authorAlexey Toptygin <alexeyt@fb.com>
Sat, 16 Jun 2018 09:33:55 +0000 (16 02:33 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Sat, 16 Jun 2018 09:42:05 +0000 (16 02:42 -0700)
tree18658064a37bd70a7628b9748f0ad818ddb34f7e
parent9eb52c8b62f97c8b5e5459b3323b8fb0faafd180
Avoid pragma writes on the sqlite repo when they're not needed.

Summary: When setting pragmas on the sqlite repo, do a read first to see if the pragma value is already what we want and possibly avoid a pragma write.

Reviewed By: markw65

Differential Revision: D8457395

fbshipit-source-id: a6219b590feeed0e8780060ce28d4088a6784b12
hphp/runtime/vm/repo.cpp